Skip to content

Commit

Permalink
gitattributes: consider SVG files generated
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
gmarull authored and nashif committed Oct 14, 2021
1 parent 4addbe4 commit ad1dad1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ad1dad1

Please sign in to comment.