summaryrefslogtreecommitdiff
path: root/contrib/completion
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-05-21 00:33:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-05-21 16:28:45 (GMT)
commit737044517f403c1080886a674845fad9c42d6bc0 (patch)
treee21ef8fa51a4940f92de1079906d12ac73a3189f /contrib/completion
parent9134a460e3ebfc93790e98d74b3cda2bcca8eb8b (diff)
downloadgit-737044517f403c1080886a674845fad9c42d6bc0.zip
git-737044517f403c1080886a674845fad9c42d6bc0.tar.gz
git-737044517f403c1080886a674845fad9c42d6bc0.tar.bz2
completion: regression fix for zsh
zsh completion wrapper doesn't reimplement __gitcompadd(). Although it should be trivial to do that, let's use __gitcomp_nl() which achieves exactly the same thing, specially since the suffix ($4) has to be empty. 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.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index a98c2fd..1c35eef 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1831,7 +1831,7 @@ _git_config ()
local remote="${prev#remote.}"
remote="${remote%.fetch}"
if [ -z "$cur" ]; then
- __gitcompadd "refs/heads/" "" "" ""
+ __gitcomp_nl "refs/heads/" "" "" ""
return
fi
__gitcomp_nl "$(__git_refs_remotes "$remote")"