From: Ville Skyttä Date: Tue, 9 Aug 2016 09:34:44 +0000 (+0300) Subject: completion: complete --delete, --move, and --remotes for git branch X-Git-Tag: v2.10.0-rc0~16^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/2703c22fc290993ade5135f85f0963776398a4df?ds=sidebyside;hp=00f27feb6afaa9e5f91a0852a5a20c041ba0a421 completion: complete --delete, --move, and --remotes for git branch Signed-off-by: Ville Skyttä Signed-off-by: Junio C Hamano --- 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 " ;; *)