1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 10:01:11 +02:00

34739: git completion: Fix regression in ce80a92

This restores the message when completing a commit object name that
isn't one of the most recent 20 commits.  e.g., 'git checkout deadbeef<TAB>'.
This commit is contained in:
Daniel Shahaf 2015-03-19 06:49:42 +00:00
parent d1119bc072
commit e176eff554
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2015-03-19 Daniel Shahaf <d.s@daniel.shahaf.name>
* 34739: Completion/Unix/Command/_git: git completion: Fix
regression in ce80a92 (workers/34638)
2015-03-18 Barton E. Schaefer <schaefer@zsh.org>
* 34734: Doc/Zsh/grammar.yo, Src/lex.c, Test/A02alias.ztst:

View file

@ -5637,7 +5637,7 @@ __git_commit_objects () {
: ${(A)commits::=${(f)"$(_call_program commits git --no-pager log -20 --format='%h:%s')"}}
__git_command_successful $pipestatus || return 1
_describe -t commits 'commit object name' commits
_describe -t commits 'commit object name' commits || _guard '[[:xdigit:]](#c,40)' 'commit object name'
}
(( $+functions[__git_recent_commits] )) ||