From: Junio C Hamano Date: Sat, 15 Sep 2012 04:39:47 +0000 (-0700) Subject: Merge branch 'cn/branch-set-upstream-to' X-Git-Tag: v1.8.0-rc0~50 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/1b9696548b9c9110109110d546b5e779095ee1d9?ds=inline;hp=-c Merge branch 'cn/branch-set-upstream-to' 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 --- 1b9696548b9c9110109110d546b5e779095ee1d9 diff --combined contrib/completion/git-completion.bash index 0492db924b,e48cf80012..1b43329ed7 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@@ -875,11 -875,15 +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 " ;; *) @@@ -1071,7 -1075,7 +1075,7 @@@ _git_diff ( } __git_mergetools_common="diffuse ecmerge emerge kdiff3 meld opendiff - tkdiff vimdiff gvimdiff xxdiff araxis p4merge bc3 + tkdiff vimdiff gvimdiff xxdiff araxis p4merge bc3 codecompare " _git_difftool () @@@ -2032,7 -2036,7 +2036,7 @@@ _git_config ( _git_remote () { - local subcommands="add rename rm set-head set-branches set-url show prune update" + local subcommands="add rename remove set-head set-branches set-url show prune update" local subcommand="$(__git_find_on_cmdline "$subcommands")" if [ -z "$subcommand" ]; then __gitcomp "$subcommands" @@@ -2040,7 -2044,7 +2044,7 @@@ fi case "$subcommand" in - rename|rm|set-url|show|prune) + rename|remove|set-url|show|prune) __gitcomp_nl "$(__git_remotes)" ;; set-head|set-branches)