summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2017-05-09 14:54:20 +0200
committerJunio C Hamano <gitster@pobox.com>2017-05-10 13:32:51 +0900
commitcedf4e27de019915a0386cb8f9a4721f2c26e7f7 (patch)
treed77bb26e46c8df99596c71d493147c23199c249d
parentbee286f8f7c2e08a9c7fef28136796f6fd99a8ab (diff)
downloadgit-cedf4e27de019915a0386cb8f9a4721f2c26e7f7.tar.gz
completion: mark bash script as LF-only
Without this change, the completion script does not work, as Bash expects its scripts to have line feeds as end-of-line markers (this is particularly prominent in quoted multi-line strings, where carriage returns would slip into the strings as verbatim characters otherwise). This change is required to let t9902-completion pass when Git's source code is checked out with `core.autocrlf = true`. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--contrib/completion/.gitattributes1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/completion/.gitattributes b/contrib/completion/.gitattributes
new file mode 100644
index 0000000000..19116944c1
--- /dev/null
+++ b/contrib/completion/.gitattributes
@@ -0,0 +1 @@
+*.bash eol=lf