summaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2018-04-26 07:50:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-04-27 00:18:55 (GMT)
commit7818b619e2c88eecd6410286f67c944f3d0d9caa (patch)
tree353e7d3f0e9ad16a3a1c7a63051aac508bcf49db /.gitattributes
parent20460635a864c2d9256339864a724a0f2e9a5ea7 (diff)
downloadgit-7818b619e2c88eecd6410286f67c944f3d0d9caa.zip
git-7818b619e2c88eecd6410286f67c944f3d0d9caa.tar.gz
git-7818b619e2c88eecd6410286f67c944f3d0d9caa.tar.bz2
.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>
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes1
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index aa08dd2..1bdc91e 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -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