Skip to content

Commit 1775e99

Browse files
tmzullingergitster
authored andcommitted
completion: complete tags with git tag --delete/--verify
Completion of tag names has worked for the short -d/-v options since 88e21dc ("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 c97eff5 ("git-tag: introduce long forms for the options", 2011-08-28). Extend tag name completion to --delete/--verify. Signed-off-by: Todd Zullinger <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 38e79b1 commit 1775e99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3045,7 +3045,7 @@ _git_tag ()
30453045
while [ $c -lt $cword ]; do
30463046
i="${words[c]}"
30473047
case "$i" in
3048-
-d|-v)
3048+
-d|--delete|-v|--verify)
30493049
__gitcomp_direct "$(__git_tags "" "$cur" " ")"
30503050
return
30513051
;;

0 commit comments

Comments
 (0)