Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
completion: complete --delete, --move, and --remotes for git branch
author
Ville Skyttä
<ville.skytta@iki.fi>
Tue, 9 Aug 2016 09:34:44 +0000
(12:34 +0300)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 9 Aug 2016 18:30:23 +0000
(11:30 -0700)
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
00f27fe
)
diff --git
a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index 34024754d9296b56c194a7959afb7b7f28402457..ce14c6f8da77f958b7ba942dd77ce825176635d2 100644
(file)
--- a/
contrib/completion/git-completion.bash
+++ b/
contrib/completion/git-completion.bash
@@
-964,8
+964,8
@@
_git_branch ()
while [ $c -lt $cword ]; do
i="${words[c]}"
case "$i" in
- -d|-
m
) only_local_ref="y" ;;
- -r
)
has_r="y" ;;
+ -d|-
-delete|-m|--move
) only_local_ref="y" ;;
+ -r
|--remotes)
has_r="y" ;;
esac
((c++))
done
@@
-979,7
+979,7
@@
_git_branch ()
--color --no-color --verbose --abbrev= --no-abbrev
--track --no-track --contains --merged --no-merged
--set-upstream-to= --edit-description --list
- --unset-upstream
+ --unset-upstream
--delete --move --remotes
"
;;
*)