Skip to content

Commit

Permalink
Merge branch 'cn/branch-set-upstream-to'
Browse files Browse the repository at this point in the history
Finishing touches to the recently graduated topic to introduce
"git branch --set-upstream-to" option.

* cn/branch-set-upstream-to:
  completion: complete branch name for "branch --set-upstream-to="
  completion: add --set-upstream-to and --unset-upstream
  • Loading branch information
Junio C Hamano committed Sep 15, 2012
2 parents ebf91ab + ca45d0f commit 1b96965
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -875,11 +875,15 @@ _git_branch ()
done

case "$cur" in
--set-upstream-to=*)
__gitcomp "$(__git_refs)" "" "${cur##--set-upstream-to=}"
;;
--*)
__gitcomp "
--color --no-color --verbose --abbrev= --no-abbrev
--track --no-track --contains --merged --no-merged
--set-upstream --edit-description --list
--set-upstream-to= --edit-description --list
--unset-upstream
"
;;
*)
Expand Down

0 comments on commit 1b96965

Please sign in to comment.