Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 2/4] vcs_info git: In non-interactive rebases, always set $hook_com[git_patches_applied] to a string of the form 'foo bar', never just 'foo'.
- X-seq: zsh-workers 43619
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 2/4] vcs_info git: In non-interactive rebases, always set $hook_com[git_patches_applied] to a string of the form 'foo bar', never just 'foo'.
- Date: Sun, 7 Oct 2018 17:46:41 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=from:to:subject:date:message-id :in-reply-to:references; s=fm1; bh=tCPPA4oIT+FkCMEJBxwQcwSlSRSBa oIviBJ3iibvjnk=; b=eKohCIuvw2Ip8bmd829BDNR/PnDCGvN2NKuy8ZUkaQBFE z5ZjXMU/1Ch5nYH9yEomwr6vkkPE3XkqSTFkEajB28QGPBnP0123bAG2JVi5LB0+ i/wJZoZTEduMfk6RPgl3Ry8l2xhxSzOSYat819OTLwOx7n9LVhlOWHURMeRDYW90 UIhUD/e42ERN+5Arph7jLnJoZRsefeAgbxK0JhFRRdcG8DjPlfAkcKcGl5CONo5J ruKH3xpBBZUL2LhIO8NTE9LMUevE2lYLjPyxZTQRd1HpdGHPz+MddQpmKNSa9DdW LPU4Kjm/kENP1Z4F5coBn8vdjpWybtN/dHrB1+6vA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=date:from:in-reply-to:message-id :references:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=tCPPA4oIT+FkCMEJBxwQcwSlSRSBa oIviBJ3iibvjnk=; b=c2RV7NsZW1fkgX57KRiiaZWJvjmgd+02ippRc1xJpkwoH 65FRyLEnDEW2kU5OGVj9iFM545kxwP6wrlAl3v8o1Q4ZahO80s9GiWuBN/rC5jtv 4LiZ6Y8RkuLOcuj7I5E8vTjCrX2qAiAJ5eQRJhz86sm+XXWHnICg0xYiFuh7o+q3 v4xPqee2ikbo+6XcOB4gk455kPPiowbt8/4KbYPIIoAfWkBwIQHBnjETDw/ksSjX tyEMcJqTMN1mFCD3uMqGajpm6OhzHEhMTOkdWiTZunzs9i4P0EfrtQDSdfTgUsy7 X3GtXrCs6bh4RHfSw/c4zDH3ftu1/clnvkQOVDlyQ==
- In-reply-to: <20181007174643.16262-1-danielsh@tarpaulin.shahaf.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20181007174643.16262-1-danielsh@tarpaulin.shahaf.local2>
---
Functions/VCS_Info/Backends/VCS_INFO_get_data_git | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
diff --git a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
index 0050f613a..cd57902b6 100644
--- a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
+++ b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
@@ -260,18 +260,11 @@ elif [[ -d "${gitdir}/rebase-apply" ]]; then
subject=$REPLY
}
fi
+ subject=${subject:-'?'}
if [[ -f "${patchdir}/original-commit" ]]; then
- if [[ -n $subject ]]; then
- git_patches_applied+=("$(< ${patchdir}/original-commit) $subject")
- else
- git_patches_applied+=("$(< ${patchdir}/original-commit)")
- fi
+ git_patches_applied+=("$(< ${patchdir}/original-commit) $subject")
else
- if [[ -n $subject ]]; then
- git_patches_applied+=("? $subject")
- else
- git_patches_applied+=("?")
- fi
+ git_patches_applied+=("? $subject")
fi
local last="$(< "${patchdir}/last")"
if (( cur+1 <= last )); then
Messages sorted by:
Reverse Date,
Date,
Thread,
Author