summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorTodd Zullinger <tmz@pobox.com>2018-03-18 04:01:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-19 16:55:01 (GMT)
commit1775e990f793965dcfc2cf62f4efccf0f2c21e28 (patch)
treecc822014f86112b126044813526496d80dbdcb97 /contrib
parent38e79b1fdab9244e1727d0698afcf3bb8956c0a4 (diff)
downloadgit-1775e990f793965dcfc2cf62f4efccf0f2c21e28.zip
git-1775e990f793965dcfc2cf62f4efccf0f2c21e28.tar.gz
git-1775e990f793965dcfc2cf62f4efccf0f2c21e28.tar.bz2
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>
Diffstat (limited to 'contrib')
-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 3683c77..c0b74aa 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
;;