Signed-off-by: Thomas Braun <[email protected]>
---
contrib/completion/git-completion.bash | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index f6e5bf6..486c61b 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -868,6 +868,12 @@ __git_complete_sequencer ()
return 0
fi
;;
+ revert)
+ if [ -f "$dir"/REVERT_HEAD ]; then
+ __gitcomp "--continue --quit --abort"
+ return 0
+ fi
+ ;;
rebase)
if [ -d "$dir"/rebase-apply ] || [ -d "$dir"/rebase-merge ];
then
__gitcomp "--continue --skip --abort"
@@ -2300,6 +2306,8 @@ _git_reset ()
_git_revert ()
{
+ __git_complete_sequencer "revert" && return
+
case "$cur" in
--*)
__gitcomp "--edit --mainline --no-edit --no-commit --signoff"
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html