.gitattributes: add a diff driver for Python
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>
Ævar Arnfjörð Bjarmason committed
Apr 26, 2018 at 07:50 UTC
7818b619e2c88eecd6410286f67c944f3d0d9caa
1 file changed
+1
.gitattributes
+1
@@ -4,6 +4,7 @@
4
*.perl eol=lf diff=perl
5
*.pl eof=lf diff=perl
6
*.pm eol=lf diff=perl
7
+*.py eol=lf diff=python
8
/Documentation/git-*.txt eol=lf
9
/command-list.txt eol=lf
10
/GIT-VERSION-GEN eol=lf