diff options
author | Michael J Gruber <git@drmicha.warpmail.net> | 2012-09-11 13:58:30 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-09-11 10:16:30 -0700 |
commit | ca45d0fa8400325df801cc911f3957d1ae246686 (patch) | |
tree | 0902bb9cbb075e6ea45197a0857bb49ee069f99a /contrib | |
parent | completion: add --set-upstream-to and --unset-upstream (diff) | |
download | tgif-ca45d0fa8400325df801cc911f3957d1ae246686.tar.xz |
completion: complete branch name for "branch --set-upstream-to="
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/completion/git-completion.bash | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 4a4d30af30..e48cf80012 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -875,6 +875,9 @@ _git_branch () done case "$cur" in + --set-upstream-to=*) + __gitcomp "$(__git_refs)" "" "${cur##--set-upstream-to=}" + ;; --*) __gitcomp " --color --no-color --verbose --abbrev= --no-abbrev |