summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2007-06-26 22:23:29 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2007-06-26 22:23:29 -0700
commit9cc0589ae85b782534b893faedc6a482fd9905ea (patch)
treeab94ba4f80f24ec0d7719bc04f6aed921bce4846 /contrib
parentgit-send-email: Add --threaded option (diff)
parentTeach bash how to complete +refspec on git-push (diff)
downloadtgif-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 c7c9963347..f2b10fa5f6 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)"
;;