Message ID | YBsOzixRy0ahWaLN@coredump.intra.peff.net (mailing list archive) |
---|---|
State | Accepted |
Commit | bca362c1f94164f23e1c9b5cf833804d46315cbe |
Headers | show |
Series | completion: handle other variants of "branch -m" | expand |
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index ba950a247d..567e73837a 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -1438,8 +1438,10 @@ _git_branch () while [ $c -lt $cword ]; do i="${words[c]}" case "$i" in - -d|--delete|-D|-m|--move) only_local_ref="y" ;; - -r|--remotes) has_r="y" ;; + -d|-D|--delete|-m|-M|--move|-c|-C|--copy) + only_local_ref="y" ;; + -r|--remotes) + has_r="y" ;; esac ((c++)) done