Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] completion: git: use `--pretty=format:%gd` with `stash list`
- X-seq: zsh-workers 35017
- From: Daniel Hahler <genml+zsh-workers@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] completion: git: use `--pretty=format:%gd` with `stash list`
- Date: Sun, 3 May 2015 03:40:12 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thequod.de; h= x-mailer:message-id:date:date:subject:subject:from:from:received :received:received; s=postfix2; t=1430617214; bh=oy7PltPCHC1ruTz r8UbC2V0WS+3ZQhDYnArTZpStTvQ=; b=kjupUdSpdYSqOzs49UwJJ91Hn9OX+52 N2fP9g18vzLCKq8a06l8sdf+37rSr/fyNi/VaZ4oXbvzXca7dDMsqFfYE1VVbYvs b0UMDs5y/W/yZZrtK2u43KUnSE5Y1f5fpnbtKgQfeqZgXRJkS4chNAWC3Z1+0Ypv gMKIdjV7EXQI=
- 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
From: Daniel Hahler <git@xxxxxxxxxx>
This appears to be available since a while:
commit 8f8f5476cd6542387d435c242752404cf144005f
Author: Thomas Rast <trast@xxxxxxxxxxxxxxx>
Date: Mon Oct 19 17:48:10 2009 +0200
Introduce new pretty formats %g[sdD] for reflog information
---
Completion/Unix/Command/_git | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index c01333b..5df01f7 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -5532,7 +5532,7 @@ __git_stashes () {
local expl
declare -a stashes
- stashes=(${${(f)"$(_call_program stashes git stash list 2>/dev/null)"}/: */})
+ stashes=(${(f)"$(_call_program stashes git stash list --pretty=format:%gd 2>/dev/null)"})
__git_command_successful $pipestatus || return 1
_wanted stashes expl stash compadd "$@" -a - stashes
--
2.4.0.dirty
Messages sorted by:
Reverse Date,
Date,
Thread,
Author