aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-06-26 22:23:29 -0700
committerJunio C Hamano <gitster@pobox.com>2007-06-26 22:23:29 -0700
commit9cc0589ae85b782534b893faedc6a482fd9905ea (patch)
treeab94ba4f80f24ec0d7719bc04f6aed921bce4846 /contrib
parente46f7a0e1c641cd80affd80516677f1e370cd72c (diff)
parent161fea832a8e8ea7d6cdc1bdc388f19825641a53 (diff)
downloadgit-9cc0589ae85b782534b893faedc6a482fd9905ea.tar.gz
git-9cc0589ae85b782534b893faedc6a482fd9905ea.tar.xz
Merge branch 'master' of git://repo.or.cz/git/fastimport
* 'master' of git://repo.or.cz/git/fastimport: Teach bash how to complete +refspec on git-push
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/completion/git-completion.bash3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index c7c996334..f2b10fa5f 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -682,6 +682,9 @@ _git_push ()
esac
__gitcomp "$(__git_refs "$remote")" "" "${cur#*:}"
;;
+ +*)
+ __gitcomp "$(__git_refs)" + "${cur#+}"
+ ;;
*)
__gitcomp "$(__git_refs)"
;;