From: Johannes Schindelin Date: Wed, 19 Jun 2019 21:05:57 +0000 (-0700) Subject: Mark .bat files as requiring CR/LF endings X-Git-Tag: v2.23.0-rc0~58^2~18 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/a5bdf9fdf1f6fe566f206097df321f28fe1593e3 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 Signed-off-by: Junio C Hamano --- diff --git a/.gitattributes b/.gitattributes index 9fa72ad450..b08a1416d8 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