diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2022-01-29 16:15:25 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2022-02-20 10:16:33 +0000 |
commit | 80389df48067bab3711ad1604bc9554d08fb9994 (patch) | |
tree | 7c352b5c424fc143f883d318239aed2c3454df0a /Functions/VCS_Info/VCS_INFO_quilt | |
parent | b8b7d9b46ac54c4494ec74b2b7ca4c06861eb75d (diff) | |
download | zsh-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_quilt | 7 |
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 |