completion: add --broken and --dirty to describe
authorThomas Braun <thomas.braun@virtuell-zuhause.de>
Fri, 6 Oct 2017 18:02:47 +0000 (20:02 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 7 Oct 2017 02:12:58 +0000 (11:12 +0900)
When the flags for broken and dirty were implemented in
b0176ce6b5 (builtin/describe: introduce --broken flag, 2017-03-21)
and 9f67d2e827 (Teach "git describe" --dirty option, 2009-10-21)
the completion was not updated, although these flags are useful
completions. Add them.

Signed-off-by: Thomas Braun <thomas.braun@virtuell-zuhause.de>
Helped-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash
index d93441747523ab2971e114cd6a02d56b79ba3382..0e16f017a4144220043d27e0c1556a6d1edbdf01 100644 (file)
@@ -1385,7 +1385,7 @@ _git_describe ()
                __gitcomp "
                        --all --tags --contains --abbrev= --candidates=
                        --exact-match --debug --long --match --always --first-parent
-                       --exclude
+                       --exclude --dirty --broken
                        "
                return
        esac