Skip to content

Commit 95ad890

Browse files
authored
bpo-42084: Language aware diff headers (GH-22776)
1 parent 93a1cca commit 95ad890

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.gitattributes

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,13 @@ Doc/library/token-list.inc linguist-generated=true
5757
Include/token.h linguist-generated=true
5858
Lib/token.py linguist-generated=true
5959
Parser/token.c linguist-generated=true
60+
61+
# Language aware diff headers
62+
# https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more
63+
# https://gist.github.com/tekin/12500956bd56784728e490d8cef9cb81
64+
*.c diff=cpp
65+
*.h diff=cpp
66+
*.css diff=css
67+
*.html diff=html
68+
*.py diff=python
69+
*.md diff=markdown

0 commit comments

Comments
 (0)