aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2018-06-16 00:45:02 +0900
committerGitHub <noreply@github.com>2018-06-16 00:45:02 +0900
commitc1897eda3d47b182977459a1e9fed4b3854a10a0 (patch)
tree6d7ada2544e8d89ff13cfe59596493c72ac3c7d5 /.gitattributes
parentbpo-29456: Fix bugs in unicodedata.normalize: u1176, u11a7 and u11c3 (GH-1958) (diff)
downloadcpython-c1897eda3d47b182977459a1e9fed4b3854a10a0.tar.gz
cpython-c1897eda3d47b182977459a1e9fed4b3854a10a0.tar.bz2
cpython-c1897eda3d47b182977459a1e9fed4b3854a10a0.zip
gitattribute: Mark generated files (GH-7619)
Marked files are collapsed by default in Github pull request. https://github.com/github/linguist#generated-code
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes17
1 files changed, 17 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index 0a998a5369f..4a487c3c2a1 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -37,3 +37,20 @@ Lib/test/test_importlib/data01/* -text
*.proj text eol=crlf
PCbuild/readme.txt text eol=crlf
PC/readme.txt text eol=crlf
+
+# Generated files
+# https://github.com/github/linguist#generated-code
+Include/graminit.h linguist-generated=true
+Python/graminit.h linguist-generated=true
+Modules/clinic/*.h linguist-generated=true
+Objects/clinic/*.h linguist-generated=true
+PC/clinic/*.h linguist-generated=true
+Python/clinic/*.h linguist-generated=true
+Python/importlib.h linguist-generated=true
+Python/importlib_external.h linguist-generated=true
+Include/Python-ast.h linguist-generated=true
+Python/Python-ast.c linguist-generated=true
+Include/opcode.h linguist-generated=true
+Python/opcode_targets.h linguist-generated=true
+Objects/typeslots.inc linguist-generated=true
+Modules/unicodedata_db.h linguist-generated=true