Skip to content

Commit ca45d0f

Browse files
Michael J Grubergitster
authored andcommitted
completion: complete branch name for "branch --set-upstream-to="
Signed-off-by: Michael J Gruber <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 04308e9 commit ca45d0f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contrib/completion/git-completion.bash

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,9 @@ _git_branch ()
875875
done
876876

877877
case "$cur" in
878+
--set-upstream-to=*)
879+
__gitcomp "$(__git_refs)" "" "${cur##--set-upstream-to=}"
880+
;;
878881
--*)
879882
__gitcomp "
880883
--color --no-color --verbose --abbrev= --no-abbrev

0 commit comments

Comments
 (0)