mirror of
https://github.com/git/git.git
synced 2026-01-25 16:27:18 +09:00
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>
This commit is contained in:
parent
38e79b1fda
commit
1775e990f7
@ -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
|
||||
;;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user