completion: complete tags with git tag --delete/--verify
authorTodd Zullinger <tmz@pobox.com>
Sun, 18 Mar 2018 04:01:35 +0000 (00:01 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 Mar 2018 16:55:01 +0000 (09:55 -0700)
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>
contrib/completion/git-completion.bash
index 3683c772c5586ccc1f6dfc8c047919d8d96aa891..c0b74aa25c40d5e36513c2282bea9312c22b5050 100644 (file)
@@ -3045,7 +3045,7 @@ _git_tag ()
        while [ $c -lt $cword ]; do
                i="${words[c]}"
                case "$i" in
-               -d|-v)
+               -d|--delete|-v|--verify)
                        __gitcomp_direct "$(__git_tags "" "$cur" " ")"
                        return
                        ;;