Add an option to hide generated/vendored files in pull/files tab #8972

Open
opened 2025-11-02 08:24:27 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @markusamshove on GitHub (May 18, 2022).

Feature Description

With the .gitattributes file Gitea allows us to mark some files/patterns as vendored or generated via linguistic, resulting them to be folded by default in the pull/files tab.

Bulding upon this feature, it would be great if there was an option to hide them completely in that tab, e.g. via a Button/Checkbox or the diff option dropdown.

The use case that I encounter from time to time is a pull request that has hundreds of generated files changed or added, with just a few lines of actual code that changed.
Currently I have to click on „load more“ multiple times to see the actual changes.

With the suggested feature, which was proposed by @lunny in Discord as a possible solution, this frontend change would improve the user experience of our developers, as they can then decide for themselves if they want to see the changes.

Screenshots

No response

Originally created by @markusamshove on GitHub (May 18, 2022). ### Feature Description With the .gitattributes file Gitea allows us to mark some files/patterns as vendored or generated via linguistic, resulting them to be folded by default in the pull/files tab. Bulding upon this feature, it would be great if there was an option to hide them completely in that tab, e.g. via a Button/Checkbox or the diff option dropdown. The use case that I encounter from time to time is a pull request that has hundreds of generated files changed or added, with just a few lines of actual code that changed. Currently I have to click on „load more“ multiple times to see the actual changes. With the suggested feature, which was proposed by @lunny in Discord as a possible solution, this frontend change would improve the user experience of our developers, as they can then decide for themselves if they want to see the changes. ### Screenshots _No response_
GiteaMirror added the type/featuretype/proposal labels 2025-11-02 08:24:27 -06:00
Author
Owner

@markusamshove commented on GitHub (May 18, 2022):

I think this means more than just some css changes, because by just hiding them there would just be an empty page in my case. I would still have to "load more"

@markusamshove commented on GitHub (May 18, 2022): I think this means more than just some css changes, because by just hiding them there would just be an empty page in my case. I would still have to "load more"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8972