git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
3d4a3ff
)
completion: suggest sequencer commands for revert
author
Thomas Braun
<redacted>
Mon, 25 May 2015 09:59:35 +0000
(11:59 +0200)
committer
Junio C Hamano
<redacted>
Mon, 1 Jun 2015 15:41:47 +0000
(08:41 -0700)
Signed-off-by: Thomas Braun <redacted>
Acked-by: Ramkumar Ramachandra <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/completion/git-completion.bash
patch
|
blob
|
history
diff --git
a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index 5944c824abe9aa4dee8b63b0e91a047125722b22..83f90a048cea28027088405493adfb6d78a9d445 100644
(file)
--- 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"
git clone https://git.99rst.org/PROJECT