From ad1dad1090d8d82944b9f0b6043a37975ede3727 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Thu, 14 Oct 2021 15:49:00 +0200 Subject: [PATCH] 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 --- .gitattributes | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 0f392e18679..734b1d4593f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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