completion: treat "branch -D" the same way as "branch -d"
commita534cf4f4d5ac58b91112fc12478d8a32e348152
authorJeff King <peff@peff.net>
Tue, 2 Feb 2021 09:02:13 +0000 (2 04:02 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Feb 2021 21:26:10 +0000 (2 13:26 -0800)
tree57781da84ec100024787860bf4b283bf7caeb396
parent71ca53e8125e36efbda17293c50027d31681a41f
completion: treat "branch -D" the same way as "branch -d"

The former offers not just branches but tags as completion
candidates.

Mimic how "branch -d" limits its suggestion to branch names.

Reported-by: Paul Jolly <paul@myitcv.io>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash