diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index b8edc10..df963c4 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -495,6 +495,7 @@ _git-checkout () { (( $+functions[_git-cherry-pick] )) || _git-cherry-pick () { + local __GIT_EXTRA_OPTIONS_FOR_RECENT_COMMITS='--all --not HEAD' _arguments \ '(- :)--quit[end revert or cherry-pick sequence]' \ '(- :)--continue[resume revert or cherry-pick sequence]' \ @@ -5676,7 +5677,7 @@ __git_recent_commits () { # Careful: most %d will expand to the empty string. Quote properly! # NOTE: we could use %D directly, but it's not available in git 1.9.1 at least. - commits=("${(f)"$(_call_program commits git --no-pager log -20 --format='%h%n%d%n%s\ \(%cr\)')"}") + commits=("${(f)"$(_call_program commits git --no-pager log $__GIT_EXTRA_OPTIONS_FOR_RECENT_COMMITS -20 --format='%h%n%d%n%s\ \(%cr\)')"}") __git_command_successful $pipestatus || return 1 for i j k in "$commits[@]" ; do