summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2019-06-19 21:05:57 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-06-20 21:03:05 (GMT)
commita5bdf9fdf1f6fe566f206097df321f28fe1593e3 (patch)
treeb8706a038a80b2b3dd6ed27a81048751ffd72a1b
parent6a1ce2ed3a70171e57c65413b3e75f3a5959eb6f (diff)
downloadgit-a5bdf9fdf1f6fe566f206097df321f28fe1593e3.zip
git-a5bdf9fdf1f6fe566f206097df321f28fe1593e3.tar.gz
git-a5bdf9fdf1f6fe566f206097df321f28fe1593e3.tar.bz2
Mark .bat files as requiring CR/LF endings
Just like the natural line ending for Unix shell scripts consist of a single Line Feed, the natural line ending for (DOS) Batch scripts consists of a Carriage Return followed by a Line Feed. It seems that both Unix shell script interpreters and the interpreter for Batch scripts (`cmd.exe`) are keen on seeing the "right" line endings. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--.gitattributes1
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index 9fa72ad..b08a141 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -5,6 +5,7 @@
*.pl eof=lf diff=perl
*.pm eol=lf diff=perl
*.py eol=lf diff=python
+*.bat eol=crlf
/Documentation/**/*.txt eol=lf
/command-list.txt eol=lf
/GIT-VERSION-GEN eol=lf