OSDN Git Service

completion: complete branch name for "branch --set-upstream-to="
authorMichael J Gruber <git@drmicha.warpmail.net>
Tue, 11 Sep 2012 11:58:30 +0000 (13:58 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Sep 2012 17:16:30 +0000 (10:16 -0700)
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash

index 4a4d30a..e48cf80 100644 (file)
@@ -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