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>

Michael J Gruber committed Sep 11, 2012 at 13:58 UTC ca45d0fa8400325df801cc911f3957d1ae246686
1 file changed +3
contrib/completion/git-completion.bash
+3
@@ -875,6 +875,9 @@ _git_branch ()
875 done
876
877 case "$cur" in
878 + --set-upstream-to=*)
879 + __gitcomp "$(__git_refs)" "" "${cur##--set-upstream-to=}"
880 + ;;
881 --*)
882 __gitcomp "
883 --color --no-color --verbose --abbrev= --no-abbrev