summaryrefslogtreecommitdiffstats
path: root/.gitattributes
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2020-10-19 19:13:01 (GMT)
committerGitHub <noreply@github.com>2020-10-19 19:13:01 (GMT)
commit95ad890a7b0341d8d2fde13f824bc24c65a8ece0 (patch)
tree49932acf7851e8ee6a9591cb07ee1686fbdda308 /.gitattributes
parent93a1ccabdede416425473329b8c718d507c55e29 (diff)
downloadcpython-95ad890a7b0341d8d2fde13f824bc24c65a8ece0.zip
cpython-95ad890a7b0341d8d2fde13f824bc24c65a8ece0.tar.gz
cpython-95ad890a7b0341d8d2fde13f824bc24c65a8ece0.tar.bz2
bpo-42084: Language aware diff headers (GH-22776)
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes10
1 files changed, 10 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index 598d8f0..3827d09 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -57,3 +57,13 @@ Doc/library/token-list.inc linguist-generated=true
Include/token.h linguist-generated=true
Lib/token.py linguist-generated=true
Parser/token.c linguist-generated=true
+
+# Language aware diff headers
+# https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more
+# https://gist.github.com/tekin/12500956bd56784728e490d8cef9cb81
+*.c diff=cpp
+*.h diff=cpp
+*.css diff=css
+*.html diff=html
+*.py diff=python
+*.md diff=markdown