summaryrefslogtreecommitdiff
path: root/contrib/completion/.gitattributes
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2017-05-09 12:54:20 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-05-10 04:32:51 (GMT)
commitcedf4e27de019915a0386cb8f9a4721f2c26e7f7 (patch)
treed77bb26e46c8df99596c71d493147c23199c249d /contrib/completion/.gitattributes
parentbee286f8f7c2e08a9c7fef28136796f6fd99a8ab (diff)
downloadgit-cedf4e27de019915a0386cb8f9a4721f2c26e7f7.zip
git-cedf4e27de019915a0386cb8f9a4721f2c26e7f7.tar.gz
git-cedf4e27de019915a0386cb8f9a4721f2c26e7f7.tar.bz2
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>
Diffstat (limited to 'contrib/completion/.gitattributes')
-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 0000000..1911694
--- /dev/null
+++ b/contrib/completion/.gitattributes
@@ -0,0 +1 @@
+*.bash eol=lf