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

34885: completion: git: Fix another instance of the 34671 bug fixed in 34814

This commit is contained in:
Daniel Shahaf 2015-04-11 10:13:55 +00:00
parent 959aa75423
commit 7929dd8cba
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2015-04-13 Daniel Shahaf <d.s@daniel.shahaf.name>
* 34885: Completion/Unix/Command/_git: completion: git: Fix
another instance of the 34671 bug fixed in 34814
2015-04-13 Peter Stephenson <p.stephenson@samsung.com>
* Han Pingtian: 34880: Doc/Zsh/options.yo: POSIX_TRAPS doc.

View file

@ -5634,7 +5634,9 @@ __git_commit_objects () {
local gitdir expl start
declare -a commits
: ${(A)commits::=${(f)"$(_call_program commits git --no-pager log -20 --format='%h:%s')"}}
# Note: the after-the-colon part must be unique across the entire array;
# see workers/34768
: ${(A)commits::=${(f)"$(_call_program commits git --no-pager log -20 --format='%h:\\\[%h\\\]\ %s')"}}
__git_command_successful $pipestatus || return 1
_describe -t commits 'commit object name' commits || _guard '[[:xdigit:]](#c,40)' 'commit object name'