]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42084: Language aware diff headers (GH-22776)
authorRaymond Hettinger <rhettinger@users.noreply.github.com>
Mon, 19 Oct 2020 19:13:01 +0000 (12:13 -0700)
committerGitHub <noreply@github.com>
Mon, 19 Oct 2020 19:13:01 +0000 (12:13 -0700)
.gitattributes

index 598d8f0f159aee753d884222122450a8750247e6..3827d09709d4a7030d0c1be15957d885e2159c4d 100644 (file)
@@ -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