completion: complete tags with git tag --delete/--verify

Completion of tag names has worked for the short -d/-v options since 88e21dc746 ("Teach bash about completing arguments for git-tag", 2007-08-31). The long options were not added to "git tag" until many years later, in c97eff5a95 ("git-tag: introduce long forms for the options", 2011-08-28). Extend tag name completion to --delete/--verify. Signed-off-by: Todd Zullinger <tmz@pobox.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Todd Zullinger committed Mar 18, 2018 at 00:01 UTC 1775e990f793965dcfc2cf62f4efccf0f2c21e28
1 file changed +1 -1
contrib/completion/git-completion.bash
+1 -1
@@ -3045,7 +3045,7 @@ _git_tag ()
3045 while [ $c -lt $cword ]; do
3046 i="${words[c]}"
3047 case "$i" in
3048 - -d|-v)
3048 + -d|--delete|-v|--verify)
3049 __gitcomp_direct "$(__git_tags "" "$cur" " ")"
3050 return
3051 ;;