]> git.ipfire.org Git - thirdparty/git.git/commitdiff
completion: fix and update 'git log --decorate=' options
authorSZEDER Gábor <szeder@ira.uka.de>
Fri, 1 May 2015 17:21:00 +0000 (19:21 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 3 May 2015 18:46:14 +0000 (11:46 -0700)
'git log --decorate=' understands the 'full', 'short' and 'no' options.
From these the completion script only offered 'short' and it offered
'long' instead of 'full'.

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash

index daccbcc33e66cef1132d63f83dd482f06af93fe3..2218a9c6f804c2d3c81cdf5a76795283eb28421b 100755 (executable)
@@ -1181,7 +1181,7 @@ _git_log ()
                return
                ;;
        --decorate=*)
-               __gitcomp "long short" "" "${cur##--decorate=}"
+               __gitcomp "full short no" "" "${cur##--decorate=}"
                return
                ;;
        --*)