-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[Feature] Ability to exclude files from diffs #12653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This would be a great feature. An alternative to the Edit: Reading around and testing on my own gitea setup it looks as though the |
This comment has been minimized.
This comment has been minimized.
@KN4CK3R You beat me to it, with a much cleaner solution 😄 Was fun to play around though. My less elegant approach is here in case there is anything of use. It attempts to find the |
…guage stats and diffs (#16773) Replaces #16262 Replaces #16250 Replaces #14833 This PR first implements a `git check-attr` pipe reader - using `git check-attr --stdin -z --cached` - taking account of the change in the output format in git 1.8.5 and creates a helper function to read a tree into a temporary index file for that pipe reader. It then wires this in to the language stats helper and into the git diff generation. Files which are marked generated will be folded by default. Fixes #14786 Fixes #12653
Github uses Linguist for code analysis in its repositories, and resulting from that introduced a nifty feature in its .gitattributes definitions:
linguist-generated
. This attribute can be used to exclude specific file types from diffs, code reviews, and hide it from showing in the file listing.I've found that to be invaluable to working with Unity3D in order to keep .meta and .prefab files from cluttering code reviews. It would be cool to have a similar feature in Gitea
The text was updated successfully, but these errors were encountered: