summaryrefslogtreecommitdiff
path: root/contrib/completion
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2016-08-09 12:34:44 +0300
committerJunio C Hamano <gitster@pobox.com>2016-08-09 11:30:23 -0700
commit2703c22fc290993ade5135f85f0963776398a4df (patch)
tree0b28612c1261568fdc5536b78611847ee9bdddcf /contrib/completion
parent00f27feb6afaa9e5f91a0852a5a20c041ba0a421 (diff)
downloadgit-2703c22fc290993ade5135f85f0963776398a4df.tar.gz
completion: complete --delete, --move, and --remotes for git branchvs/completion-branch-fully-spelled-d-m-r
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/completion')
-rw-r--r--contrib/completion/git-completion.bash6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 34024754d9..ce14c6f8da 100644
--- 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
"
;;
*)