You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Respect (linguist|gitlab)-generated in .gitattributes (#115)
This PR adds support for `.gitattributes` files being able to either
consider a file as generated, or remove a typically generated file (i.e
in folders such as `out`) from being considered as generated. This is
complimentary to the existing path-based heuristics.
Both negation (`-linguist-generated`) and a `false` value
(`linguist-generated=false`) are supported.
`git check-attr --source=` is used but if the Git version is older than
2.40, when [the `--source` option was
introduced](https://github.blog/open-source/git/highlights-from-git-2-40/#:~:text=While%20we%E2%80%99re%20talking%20about%20scripting),
it will fall-back to the previous method of generating an index first
with `git read-tree`.
Files marked as generated are collapsed by default and given a small
`Generated` badge:
<img width="3211" height="390" alt="image"
src="https://github.com/user-attachments/assets/4224a9e1-5c81-4ee5-acd5-46cff95de674"
/>
The walkthrough agent will group these generated files in the final
support section but if they are deemed to be behaviourally important, it
may still be included in a named section.
0 commit comments