about summary refs log tree commit diff
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:30 +0000
commit0ea1957608a6b496fc244078ce9e24f00327aba9 (patch)
tree860183613739ec834e774961f2fb0799ab690c9f /Functions/VCS_Info/VCS_INFO_quilt
parent57013f8b96520057fda4b0d5057646c83465d1b6 (diff)
downloadzsh-0ea1957608a6b496fc244078ce9e24f00327aba9.tar.gz
zsh-0ea1957608a6b496fc244078ce9e24f00327aba9.tar.xz
zsh-0ea1957608a6b496fc244078ce9e24f00327aba9.zip
40403/0001: vcs_info set-patch-format helper: Part #1.
Diffstat (limited to 'Functions/VCS_Info/VCS_INFO_quilt')
-rw-r--r--Functions/VCS_Info/VCS_INFO_quilt11
1 files changed, 1 insertions, 10 deletions
diff --git a/Functions/VCS_Info/VCS_INFO_quilt b/Functions/VCS_Info/VCS_INFO_quilt
index 4c61506cd..dd3f4959b 100644
--- a/Functions/VCS_Info/VCS_INFO_quilt
+++ b/Functions/VCS_Info/VCS_INFO_quilt
@@ -173,16 +173,7 @@ function VCS_INFO_quilt() {
 
     all=( ${(Oa)applied} ${unapplied} )
 
-    if VCS_INFO_hook 'gen-applied-string' "${applied[@]}"; then
-        if (( ${#applied} )); then
-            applied_string=${applied[1]}
-        else
-            applied_string=""
-        fi
-    else
-        applied_string=${hook_com[applied-string]}
-    fi
-    hook_com=()
+    VCS_INFO_set-patch-format 'applied' 'applied_string' 
     if VCS_INFO_hook 'gen-unapplied-string' "${unapplied[@]}"; then
         unapplied_string="${#unapplied}"
     else