gitattributes: consider SVG files generated

SVG files are usually created or generated using editors, e.g. Inkscape.
Exclude them from stats/diffs to improve review process by marking them
as generated.

Ref. https://github.com/github/linguist/blob/master/docs/overrides.md

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2021-10-14 15:49:00 +02:00 committed by Anas Nashif
parent 4addbe4d3d
commit ad1dad1090
1 changed files with 5 additions and 1 deletions

6
.gitattributes vendored
View File

@ -4,6 +4,10 @@
.gitignore export-ignore
.mailmap export-ignore
# Tell git to not diff certain files
*.svg -diff
# Tell linguist that generated test pattern files should not be included in the
# language statistics.
*.pat linguist-generated=true
*.pat linguist-generated
*.svg linguist-generated