* [PATCH] completion: git: use `--pretty=format:%gd` with `stash list`
@ 2015-05-03 1:38 Daniel Hahler
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Hahler @ 2015-05-03 1:38 UTC (permalink / raw)
To: zsh-workers
From: Daniel Hahler <git@thequod.de>
This appears to be available since a while:
commit 8f8f5476cd6542387d435c242752404cf144005f
Author: Thomas Rast <trast@student.ethz.ch>
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] completion: git: use `--pretty=format:%gd` with `stash list`
@ 2015-05-03 1:40 Daniel Hahler
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Hahler @ 2015-05-03 1:40 UTC (permalink / raw)
To: zsh-workers
From: Daniel Hahler <git@thequod.de>
This appears to be available since a while:
commit 8f8f5476cd6542387d435c242752404cf144005f
Author: Thomas Rast <trast@student.ethz.ch>
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-03 1:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-03 1:38 [PATCH] completion: git: use `--pretty=format:%gd` with `stash list` Daniel Hahler
2015-05-03 1:40 Daniel Hahler
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).