about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2015-04-01 09:28:01 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2015-04-01 09:44:26 +0000
commit727533088a42064d6b4e6d6c5ebe67dd457fb0da (patch)
treee17b2f045acbe8c78e5923155fb577af1d397ce5 /Completion/Unix
parent5b2bb68364ba025b312168d12a0f43b38b4e6268 (diff)
downloadzsh-727533088a42064d6b4e6d6c5ebe67dd457fb0da.tar.gz
zsh-727533088a42064d6b4e6d6c5ebe67dd457fb0da.tar.xz
zsh-727533088a42064d6b4e6d6c5ebe67dd457fb0da.zip
34814: completion: git: Fix bug introduced by 236da69
Based on a patch by Daniel Hahler <git@thequod.de>.
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_git4
1 files changed, 3 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 9dafd3c97..cc8fa65c3 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -5651,7 +5651,9 @@ __git_recent_commits () {
   __git_command_successful $pipestatus || return 1
 
   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 ')'
     for j in ${(s:, :)j}; do
       if [[ $j == 'tag: '* ]] ; then