From 956352b67e1abea342ba7468ac4708ad3ab9970e Mon Sep 17 00:00:00 2001 From: Thomas Braun Date: Mon, 25 May 2015 11:59:35 +0200 Subject: completion: suggest sequencer commands for revert Signed-off-by: Thomas Braun Acked-by: Ramkumar Ramachandra Signed-off-by: Junio C Hamano --- contrib/completion/git-completion.bash | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'contrib/completion') diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 5944c824ab..83f90a048c 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -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" -- cgit v1.2.3