-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Ignore files in diff with check-attr #16262
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #16262 +/- ##
==========================================
+ Coverage 44.24% 45.48% +1.24%
==========================================
Files 695 709 +14
Lines 82341 83456 +1115
==========================================
+ Hits 36429 37960 +1531
+ Misses 40014 39420 -594
- Partials 5898 6076 +178
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I think it should also set IsGenerated by using go-enry method IsGenerated |
Is it really necessary to sync |
…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
@zeripath close? |
yeah I think this has been replaced. |
fixes #12653
close #16250
This PR moves the

.gitattribute
file from the root of the default branch intorepo.git/info/attributes
after every push. The diff supports now thelinguist-generated
keyword and hides these file in the output.