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>2022-01-29 16:15:25 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2022-02-20 10:16:33 +0000
commit80389df48067bab3711ad1604bc9554d08fb9994 (patch)
tree7c352b5c424fc143f883d318239aed2c3454df0a /Functions/VCS_Info/VCS_INFO_quilt
parentb8b7d9b46ac54c4494ec74b2b7ca4c06861eb75d (diff)
downloadzsh-80389df48067bab3711ad1604bc9554d08fb9994.tar.gz
zsh-80389df48067bab3711ad1604bc9554d08fb9994.tar.xz
zsh-80389df48067bab3711ad1604bc9554d08fb9994.zip
49727 (+ comment): vcs_info quilt: Pass the patches dir path to the gen-applied-string, gen-unapplied-string, and set-patch-format hooks
I use that in my gen-applied-string hook.
Diffstat (limited to 'Functions/VCS_Info/VCS_INFO_quilt')
-rw-r--r--Functions/VCS_Info/VCS_INFO_quilt7
1 files changed, 6 insertions, 1 deletions
diff --git a/Functions/VCS_Info/VCS_INFO_quilt b/Functions/VCS_Info/VCS_INFO_quilt
index ee242f552..ce5b41f24 100644
--- a/Functions/VCS_Info/VCS_INFO_quilt
+++ b/Functions/VCS_Info/VCS_INFO_quilt
@@ -179,10 +179,15 @@ function VCS_INFO_quilt-patch2subject() {
         done
     }
 
+    typeset -A quilt_extra_info=(
+        quilt-patches-dir ${patches}
+        ${pc:+"quilt-pc-dir"} $pc
+    )
+
     VCS_INFO_set-patch-format 'applied' 'applied_string' \
                               'unapplied' 'unapplied_string' \
                               ${context} qstring \
-                              '' ''
+                              quilt_extra_info '' quilt_extra_info
     qstring=$REPLY
 
     case ${mode} in