summaryrefslogtreecommitdiff
path: root/Functions/VCS_Info/VCS_INFO_quilt
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2017-01-23 18:15:35 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2017-01-25 04:22:31 +0000
commit270285733442a46cd157ade4600e4073e255a563 (patch)
tree2096f7f27cdd17be372b6b1b0d96f9286751802d /Functions/VCS_Info/VCS_INFO_quilt
parent0ea1957608a6b496fc244078ce9e24f00327aba9 (diff)
downloadzsh-270285733442a46cd157ade4600e4073e255a563.tar.gz
zsh-270285733442a46cd157ade4600e4073e255a563.zip
40403/0002: vcs_info set-patch-format helper: Part #2.
Not all callers reset ${hook_com}, but those that don't, immediately overwrite it a few lines later.
Diffstat (limited to 'Functions/VCS_Info/VCS_INFO_quilt')
-rw-r--r--Functions/VCS_Info/VCS_INFO_quilt8
1 files changed, 2 insertions, 6 deletions
diff --git a/Functions/VCS_Info/VCS_INFO_quilt b/Functions/VCS_Info/VCS_INFO_quilt
index dd3f4959b..1872fc7fa 100644
--- a/Functions/VCS_Info/VCS_INFO_quilt
+++ b/Functions/VCS_Info/VCS_INFO_quilt
@@ -173,12 +173,8 @@ function VCS_INFO_quilt() {
all=( ${(Oa)applied} ${unapplied} )
- VCS_INFO_set-patch-format 'applied' 'applied_string'
- if VCS_INFO_hook 'gen-unapplied-string' "${unapplied[@]}"; then
- unapplied_string="${#unapplied}"
- else
- unapplied_string=${hook_com[unapplied-string]}
- fi
+ VCS_INFO_set-patch-format 'applied' 'applied_string' \
+ 'unapplied' 'unapplied_string'
if (( ${#applied} )); then
zstyle -s "${context}" patch-format qstring || qstring="%p (%n applied)"