Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 2/7] completion: git: use %D for %d, without the " (", ")" wrapping
- X-seq: zsh-workers 35102
- From: Daniel Hahler <genml+zsh-workers@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 2/7] completion: git: use %D for %d, without the " (", ")" wrapping
- Date: Wed, 13 May 2015 16:26:26 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thequod.de; h= references:in-reply-to:x-mailer:message-id:date:date:subject :subject:from:from:received:received:received; s=postfix2; t= 1431527205; bh=hxseqLBqmlPUdDNwb2CDIROLM/Ne/ptXts9ZOEiNjME=; b=U 0ddlNucQwldgeMJjKFfiQIZJCJufewDPxMvgKA0SR7OGqvWjFyKaT7QnceSCZIqV TqEp2cxKDQIWJYVWJxKD0s1Mqx3cIbSer9ymZaqb9MTPgYIb+8H8IhfjqmpoMe/T utGbsUkj6gRVJvw0GC0U4S4tyb8lP/DpgqAHXq/5As=
- In-reply-to: <1431527191-32165-1-git-send-email-genml+zsh-workers@thequod.de>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1431527191-32165-1-git-send-email-genml+zsh-workers@thequod.de>
From: Daniel Hahler <git@xxxxxxxxxx>
This avoids having to remove this later again.
---
Completion/Unix/Command/_git | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 962b1e8..2204fc8 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -5665,14 +5665,13 @@ __git_recent_commits () {
local i j k
# Careful: most %d will expand to the empty string. Quote properly!
- : "${(A)commits::=${(@f)"$(_call_program commits git --no-pager log -20 --format='%h%n%d%n%s')"}}"
+ : "${(A)commits::=${(@f)"$(_call_program commits git --no-pager log -20 --format='%h%n%D%n%s')"}}"
__git_command_successful $pipestatus || return 1
for i j k in "$commits[@]" ; do
# 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%% ->*} # Remove " -> master, origin/master" etc.
for j in ${(s:, :)j}; do
if [[ $j == 'tag: '* ]] ; then
--
2.4.0.dirty
Messages sorted by:
Reverse Date,
Date,
Thread,
Author