summaryrefslogtreecommitdiff
path: root/Functions/VCS_Info/Backends
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/Backends
parentb8b7d9b46ac54c4494ec74b2b7ca4c06861eb75d (diff)
downloadzsh-80389df48067bab3711ad1604bc9554d08fb9994.tar.gz
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/Backends')
-rw-r--r--Functions/VCS_Info/Backends/VCS_INFO_get_data_git2
-rw-r--r--Functions/VCS_Info/Backends/VCS_INFO_get_data_hg2
2 files changed, 2 insertions, 2 deletions
diff --git a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
index fe084dffb..e45eebc8e 100644
--- a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
+++ b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
@@ -132,7 +132,7 @@ VCS_INFO_git_handle_patches () {
VCS_INFO_set-patch-format 'git_patches_applied' 'git_applied_s' \
'git_patches_unapplied' 'git_unapplied_s' \
":vcs_info:${vcs}:${usercontext}:${rrn}" gitmsg \
- '' ''
+ '' '' ''
gitmisc=$REPLY
}
diff --git a/Functions/VCS_Info/Backends/VCS_INFO_get_data_hg b/Functions/VCS_Info/Backends/VCS_INFO_get_data_hg
index 97086670c..e7123f0bf 100644
--- a/Functions/VCS_Info/Backends/VCS_INFO_get_data_hg
+++ b/Functions/VCS_Info/Backends/VCS_INFO_get_data_hg
@@ -225,7 +225,7 @@ if zstyle -T ":vcs_info:${vcs}:${usercontext}:${rrn}" get-mq \
VCS_INFO_set-patch-format 'mqpatches' 'applied_string' \
'mqunapplied' 'unapplied_string' \
":vcs_info:${vcs}:${usercontext}:${rrn}" hgmqstring \
- extra_hook_com VCS_INFO_hg_extra_zformats
+ extra_hook_com VCS_INFO_hg_extra_zformats ''
hgmqstring=$REPLY
fi