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:
e2af9e3
)
completion: add more cherry-pick options
author
Felipe Contreras
<redacted>
Wed, 10 Apr 2013 09:08:18 +0000
(
04:08
-0500)
committer
Junio C Hamano
<redacted>
Fri, 12 Apr 2013 17:43:20 +0000
(10:43 -0700)
Signed-off-by: Felipe Contreras <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 2ba1461422c4e6c16e6c85ed3914536e1f4aa56e..8ad842e462d4188581c6c12197d9582811a74752 100644
(file)
--- a/
contrib/completion/git-completion.bash
+++ b/
contrib/completion/git-completion.bash
@@
-1124,9
+1124,14
@@
_git_cherry ()
_git_cherry_pick ()
{
+ local dir="$(__gitdir)"
+ if [ -f "$dir"/CHERRY_PICK_HEAD ]; then
+ __gitcomp "--continue --quit --abort"
+ return
+ fi
case "$cur" in
--*)
- __gitcomp "--edit --no-commit"
+ __gitcomp "--edit --no-commit
--signoff --strategy= --mainline
"
;;
*)
__gitcomp_nl "$(__git_refs)"
git clone https://git.99rst.org/PROJECT