]> git.ipfire.org Git - thirdparty/git.git/commitdiff
completion: bash: synchronize zsh wrapper
authorFelipe Contreras <felipe.contreras@gmail.com>
Wed, 28 Oct 2020 02:06:52 +0000 (20:06 -0600)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Oct 2020 21:30:59 +0000 (14:30 -0700)
A function was missing.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash

index ec7dd12a4155e876ae3fddb77038e2d7dee93de0..40affd40e24f1fd4885a11cb6a1208e76e2d179b 100644 (file)
@@ -3510,6 +3510,14 @@ if [[ -n ${ZSH_VERSION-} ]] &&
                compadd -Q -S "${4- }" -p "${2-}" -- ${=1} && _ret=0
        }
 
+       __gitcomp_nl_append ()
+       {
+               emulate -L zsh
+
+               local IFS=$'\n'
+               compadd -Q -S "${4- }" -p "${2-}" -- ${=1} && _ret=0
+       }
+
        __gitcomp_file_direct ()
        {
                emulate -L zsh