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: http://git.osdn.net/view?a=commitdiff_plain;h=ca45d0fa8400325df801cc911f3957d1ae246686;p=git-core%2Fgit.git completion: complete branch name for "branch --set-upstream-to=" Signed-off-by: Michael J Gruber Signed-off-by: Junio C Hamano --- diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 4a4d30af3..e48cf8001 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