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
This commit is contained in:
commit
1b9696548b
@ -875,11 +875,15 @@ _git_branch ()
|
|||||||
done
|
done
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
|
--set-upstream-to=*)
|
||||||
|
__gitcomp "$(__git_refs)" "" "${cur##--set-upstream-to=}"
|
||||||
|
;;
|
||||||
--*)
|
--*)
|
||||||
__gitcomp "
|
__gitcomp "
|
||||||
--color --no-color --verbose --abbrev= --no-abbrev
|
--color --no-color --verbose --abbrev= --no-abbrev
|
||||||
--track --no-track --contains --merged --no-merged
|
--track --no-track --contains --merged --no-merged
|
||||||
--set-upstream --edit-description --list
|
--set-upstream-to= --edit-description --list
|
||||||
|
--unset-upstream
|
||||||
"
|
"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
Reference in New Issue
Block a user