mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 22:11:54 +02:00
34814: completion: git: Fix bug introduced by 236da69
Based on a patch by Daniel Hahler <git@thequod.de>.
This commit is contained in:
parent
5b2bb68364
commit
727533088a
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2015-04-01 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||||
|
|
||||||
|
* 34814: Completion/Unix/Command/_git: completion: git: Fix
|
||||||
|
bug introduced by 34671 [based on patch by Daniel Hahler]
|
||||||
|
|
||||||
2015-03-31 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
2015-03-31 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||||
|
|
||||||
* users/20058: Completion/Unix/Command/_ip,
|
* users/20058: Completion/Unix/Command/_ip,
|
||||||
|
|
|
@ -5651,7 +5651,9 @@ __git_recent_commits () {
|
||||||
__git_command_successful $pipestatus || return 1
|
__git_command_successful $pipestatus || return 1
|
||||||
|
|
||||||
for i j k in "$commits[@]" ; do
|
for i j k in "$commits[@]" ; do
|
||||||
descr+=($i:$k)
|
# Note: the after-the-colon part must be unique across the entire array;
|
||||||
|
# see workers/34768
|
||||||
|
descr+=("$i:[$i] $k")
|
||||||
j=${${j# \(}%\)} # strip leading ' (' and trailing ')'
|
j=${${j# \(}%\)} # strip leading ' (' and trailing ')'
|
||||||
for j in ${(s:, :)j}; do
|
for j in ${(s:, :)j}; do
|
||||||
if [[ $j == 'tag: '* ]] ; then
|
if [[ $j == 'tag: '* ]] ; then
|
||||||
|
|
Loading…
Reference in a new issue