zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] Fix broken __git_recent_commits from previous commit
@ 2015-05-19  4:37 Daniel Hahler
  0 siblings, 0 replies; only message in thread
From: Daniel Hahler @ 2015-05-19  4:37 UTC (permalink / raw)
  To: zsh-workers

From: Daniel Hahler <git@thequod.de>

This fixes 1e7bb4a: newlines need to be kept (from the "%d" part).
---
 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 6901b42..18d8954 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -5676,7 +5676,7 @@ __git_recent_commits () {
 
   # Careful: most %d will expand to the empty string.  Quote properly!
   # NOTE: we could use %D directly, but it's not available in git 1.9.1 at least.
-  commits=(${(@f)"$(_call_program commits git --no-pager log -20 --format='%h%n%d%n%s\ \(%cr\)')"})
+  commits=("${(f)"$(_call_program commits git --no-pager log -20 --format='%h%n%d%n%s\ \(%cr\)')"}")
   __git_command_successful $pipestatus || return 1
 
   for i j k in "$commits[@]" ; do
-- 
2.4.0.dirty


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-05-19  4:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-19  4:37 [PATCH] Fix broken __git_recent_commits from previous commit 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).