completion: complete --delete, --move, and --remotes for git branch
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
00f27feb6a
commit
2703c22fc2
@ -964,8 +964,8 @@ _git_branch ()
|
|||||||
while [ $c -lt $cword ]; do
|
while [ $c -lt $cword ]; do
|
||||||
i="${words[c]}"
|
i="${words[c]}"
|
||||||
case "$i" in
|
case "$i" in
|
||||||
-d|-m) only_local_ref="y" ;;
|
-d|--delete|-m|--move) only_local_ref="y" ;;
|
||||||
-r) has_r="y" ;;
|
-r|--remotes) has_r="y" ;;
|
||||||
esac
|
esac
|
||||||
((c++))
|
((c++))
|
||||||
done
|
done
|
||||||
@ -979,7 +979,7 @@ _git_branch ()
|
|||||||
--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-to= --edit-description --list
|
--set-upstream-to= --edit-description --list
|
||||||
--unset-upstream
|
--unset-upstream --delete --move --remotes
|
||||||
"
|
"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Reference in New Issue
Block a user