summaryrefslogtreecommitdiff
path: root/contrib/completion
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2020-10-28 02:06:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-10-28 21:30:59 (GMT)
commitbed635664c4a60f4b19baff02f487aa4c0cd591e (patch)
treed69f9719a307b7dec9cd9915bebedb0c953831bc /contrib/completion
parent81f717bb268e86eee5701b8199d8f030938a184c (diff)
downloadgit-bed635664c4a60f4b19baff02f487aa4c0cd591e.zip
git-bed635664c4a60f4b19baff02f487aa4c0cd591e.tar.gz
git-bed635664c4a60f4b19baff02f487aa4c0cd591e.tar.bz2
completion: bash: synchronize zsh wrapper
A function was missing. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/completion')
-rw-r--r--contrib/completion/git-completion.bash8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index ec7dd12..40affd4 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -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