Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] vcs_info git: Avoid a fork.
- X-seq: zsh-workers 40149
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] vcs_info git: Avoid a fork.
- Date: Sun, 11 Dec 2016 04:01:45 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=Og7 zbhPQDL1KYp0hMW7kXz2+KUc=; b=RrYto5MaslqE8uNHmf2psrOGCgsTFEVRvSM Koagw40Shx2lEf2R2m4cAgL/dmFLan8wTVLtOnv5UvG+xaqsyZfFMWk/8kWbXKmR advex9xwO1XfxvjeHuIQsyfegUiMJoZJ5vo1GfVEwK5lukPDz2oHqmw84+RtV1rf 1DpwxmwE=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=Og 7zbhPQDL1KYp0hMW7kXz2+KUc=; b=qoBTmm/R217ZCg6X2qZmQXTWa9mRH8Au26 ThJhrYSgn4H/C41FkP2VVa2V33DfudkTbPK3q6WPv2WLBShrMXmo+r1AvkO5tvtc qdveAiGo6YpIZIl2Mkou3iLT7k7lo2BP6xqRBodRtJWTBPkXcErAi2bivLsL0Z2y IZe0sC6oI=
- 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
---
Functions/VCS_Info/Backends/VCS_INFO_get_data_git | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
index 5e25206..4ec87c6 100644
--- a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
+++ b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
@@ -221,7 +221,7 @@ elif [[ -d "${gitdir}/rebase-merge" ]]; then
git_patches_applied+=("$p")
done
if [[ -f "${patchdir}/git-rebase-todo" ]] ; then
- git_patches_unapplied=(${(f)"$(grep -v '^$' "${patchdir}/git-rebase-todo" | grep -v '^#')"})
+ git_patches_unapplied=( ${${(f)${"$(<"${patchdir}/git-rebase-todo")"}}:#[#]*} )
fi
VCS_INFO_git_handle_patches
elif [[ -d "${gitdir}/rebase-apply" ]]; then
Messages sorted by:
Reverse Date,
Date,
Thread,
Author