From: Michael J Gruber Date: Tue, 11 Sep 2012 11:58:30 +0000 (+0200) Subject: completion: complete branch name for "branch --set-upstream-to=" X-Git-Tag: v1.8.0-rc0~50^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/ca45d0fa8400325df801cc911f3957d1ae246686?ds=inline;hp=--cc completion: complete branch name for "branch --set-upstream-to=" Signed-off-by: Michael J Gruber Signed-off-by: Junio C Hamano --- ca45d0fa8400325df801cc911f3957d1ae246686 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