]> git.ipfire.org Git - thirdparty/git.git/commitdiff
completion: suggest sequencer commands for revert
authorThomas Braun <thomas.braun@virtuell-zuhause.de>
Mon, 25 May 2015 09:59:35 +0000 (11:59 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Jun 2015 15:41:47 +0000 (08:41 -0700)
Signed-off-by: Thomas Braun <thomas.braun@virtuell-zuhause.de>
Acked-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash

index 5944c824abe9aa4dee8b63b0e91a047125722b22..83f90a048cea28027088405493adfb6d78a9d445 100644 (file)
@@ -2292,6 +2292,11 @@ _git_reset ()
 
 _git_revert ()
 {
+       local dir="$(__gitdir)"
+       if [ -f "$dir"/REVERT_HEAD ]; then
+               __gitcomp "--continue --quit --abort"
+               return
+       fi
        case "$cur" in
        --*)
                __gitcomp "--edit --mainline --no-edit --no-commit --signoff"