completion: suggest sequencer commands for revert

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>

Thomas Braun committed May 25, 2015 at 11:59 UTC 956352b67e1abea342ba7468ac4708ad3ab9970e
1 file changed +5
contrib/completion/git-completion.bash
+5
@@ -2292,6 +2292,11 @@ _git_reset ()
2292
2293 _git_revert ()
2294 {
2295 + local dir="$(__gitdir)"
2296 + if [ -f "$dir"/REVERT_HEAD ]; then
2297 + __gitcomp "--continue --quit --abort"
2298 + return
2299 + fi
2300 case "$cur" in
2301 --*)
2302 __gitcomp "--edit --mainline --no-edit --no-commit --signoff"