Auto-collapse or hide certain file on diff/PR #3403

Closed
opened 2025-11-02 05:11:52 -06:00 by GiteaMirror · 8 comments
Owner

Originally created by @DblK on GitHub (May 31, 2019).

On some project/language, there are files (for example VisualStudio Project file, etc.) that you must commit to have a working repository.
However, those file are managed by the IDE your are using and none of the changes are made by hand.

I would like to either auto-collapse the file to not spend time on review for file I won't watch or being able to specify (either inside the repository in .gitea.yml) or in settings inside gitea to list the files I want to ignore in those process (PR, Diff, etc...)

Originally created by @DblK on GitHub (May 31, 2019). On some project/language, there are files (for example VisualStudio Project file, etc.) that you must commit to have a working repository. However, those file are managed by the IDE your are using and none of the changes are made by hand. I would like to either auto-collapse the file to not spend time on review for file I won't watch or being able to specify (either inside the repository in `.gitea.yml`) or in settings inside gitea to list the files I want to ignore in those process (PR, Diff, etc...)
GiteaMirror added the issue/confirmedtype/feature labels 2025-11-02 05:11:52 -06:00
Author
Owner

@lunny commented on GitHub (Jun 2, 2019):

Right, this is a good idea. We could define some situations here.

  • according extensions
  • specify sub folders
  • specify filenames
  • non-image binaries
@lunny commented on GitHub (Jun 2, 2019): Right, this is a good idea. We could define some situations here. - [ ] according extensions - [ ] specify sub folders - [ ] specify filenames - [ ] non-image binaries
Author
Owner

@6543 commented on GitHub (Oct 18, 2019):

I would NOT hide them because of securety conzerns - but then https://github.com/go-gitea/gitea/issues/8579 has to be there first

@6543 commented on GitHub (Oct 18, 2019): I would NOT hide them because of securety conzerns - but then https://github.com/go-gitea/gitea/issues/8579 has to be there first
Author
Owner

@DblK commented on GitHub (Oct 25, 2019):

When I said "hide" I had in mind collapse like the ticket @6543 was mentioning.
When #8579 will be done, this feature can be easily implemented by auto-collapse some files.

@DblK commented on GitHub (Oct 25, 2019): When I said "hide" I had in mind collapse like the ticket @6543 was mentioning. When #8579 will be done, this feature can be easily implemented by auto-collapse some files.
Author
Owner

@lunny commented on GitHub (Nov 27, 2019):

I think we can put a file named .gitea/pr_collapse which have a format similiar with .gitignore to do that.

@lunny commented on GitHub (Nov 27, 2019): I think we can put a file named `.gitea/pr_collapse` which have a format similiar with `.gitignore` to do that.
Author
Owner

@guillep2k commented on GitHub (Nov 27, 2019):

I think we can put a file named .gitea/pr_collapse which have a format similiar with .gitignore to do that.

I've always wanted /vendor files to auto-collapse. 👍

@guillep2k commented on GitHub (Nov 27, 2019): > > > I think we can put a file named `.gitea/pr_collapse` which have a format similiar with `.gitignore` to do that. I've always wanted `/vendor` files to auto-collapse. 👍
Author
Owner

@mpuromaki commented on GitHub (Jan 3, 2020):

diff

I would like to auto-collapse/hide/push-down diffs that have specific type of change (regexp?).

My use case is IDE generated changes to hundreds of files in each commit. These changes has to be included in the commits since they're checksums etc.

@mpuromaki commented on GitHub (Jan 3, 2020): ![diff](https://user-images.githubusercontent.com/23620092/71726255-2eba4c80-2e3f-11ea-89d1-6bf4d7a58864.PNG) I would like to auto-collapse/hide/push-down diffs that have specific type of change (regexp?). My use case is IDE generated changes to hundreds of files in each commit. These changes has to be included in the commits since they're checksums etc.
Author
Owner

@zeripath commented on GitHub (Jan 12, 2022):

Does #16773 not completely fulfil this request?

@zeripath commented on GitHub (Jan 12, 2022): Does #16773 not completely fulfil this request?
Author
Owner

@zeripath commented on GitHub (Jan 12, 2022):

yup I think this is fixed by #16773. Please reopen if that PR does not completely fulfil this request.

@zeripath commented on GitHub (Jan 12, 2022): yup I think this is fixed by #16773. Please reopen if that PR does not completely fulfil this request.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3403