summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Zullinger <tmz@pobox.com>2018-03-18 00:01:35 -0400
committerJunio C Hamano <gitster@pobox.com>2018-03-19 09:55:01 -0700
commit1775e990f793965dcfc2cf62f4efccf0f2c21e28 (patch)
treecc822014f86112b126044813526496d80dbdcb97
parent38e79b1fdab9244e1727d0698afcf3bb8956c0a4 (diff)
downloadgit-tz/complete-tag-delete-tagname.tar.gz
completion: complete tags with git tag --delete/--verifytz/complete-tag-delete-tagname
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>
-rw-r--r--contrib/completion/git-completion.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 3683c772c5..c0b74aa25c 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -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
;;