.gitattributes: add a diff driver for Python
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 26 Apr 2018 07:50:58 +0000 (07:50 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Apr 2018 00:18:55 +0000 (09:18 +0900)
Declare that the *.py files in our tree are Python for the purposes of
diffing, and as in 00ddc9d13c ("Fix build with core.autocrlf=true",
2017-05-09) set eol=lf on them, which makes sense like with the *.perl
files.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.gitattributes
index aa08dd219db059d83aa0ad59d454212e3bc80043..1bdc91e282c5393c527b3902a208227c19971b84 100644 (file)
@@ -4,6 +4,7 @@
 *.perl eol=lf diff=perl
 *.pl eof=lf diff=perl
 *.pm eol=lf diff=perl
+*.py eol=lf diff=python
 /Documentation/git-*.txt eol=lf
 /command-list.txt eol=lf
 /GIT-VERSION-GEN eol=lf