]> git.ipfire.org Git - thirdparty/git.git/commitdiff
completion: add git-tag options
authorRalf Thielow <ralf.thielow@gmail.com>
Thu, 4 Dec 2014 18:07:35 +0000 (19:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Dec 2014 20:10:26 +0000 (12:10 -0800)
Add completion for git-tag options including
all options that are currently shown in "git tag -h".

Signed-off-by: Ralf Thielow <ralf.thielow@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash

index 06bf262087768d98450cb589eb8f8fcc51ed2f74..46c82de62d4368e20e048dc0bfa02d50a86e8a1c 100644 (file)
@@ -2549,6 +2549,16 @@ _git_tag ()
                __gitcomp_nl "$(__git_refs)"
                ;;
        esac
+
+       case "$cur" in
+       --*)
+               __gitcomp "
+                       --list --delete --verify --annotate --message --file
+                       --sign --cleanup --local-user --force --column --sort
+                       --contains --points-at
+                       "
+               ;;
+       esac
 }
 
 _git_whatchanged ()