summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Functions/VCS_Info/Backends/VCS_INFO_get_data_git6
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 7d8d19eae..acb4bf464 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2017-01-25 Daniel Shahaf <d.s@daniel.shahaf.name>
+ * 40401: Functions/VCS_Info/Backends/VCS_INFO_get_data_git:
+ vcs_info git: Fix the %c patch-format expando.
+
* 40396: Doc/Zsh/contrib.yo: vcs_info quilt: More documentation
of '%Q' and 'use-quilt'.
diff --git a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
index 63109aa46..69ed24a2c 100644
--- a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
+++ b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
@@ -136,9 +136,9 @@ VCS_INFO_git_handle_patches () {
fi
hook_com=()
if VCS_INFO_hook 'gen-unapplied-string' "${git_patches_unapplied[@]}"; then
- git_patches_unapplied=${#git_patches_unapplied}
+ git_unapplied_s=${#git_patches_unapplied}
else
- git_patches_unapplied=${hook_com[unapplied-string]}
+ git_unapplied_s=${hook_com[unapplied-string]}
fi
if (( ${#git_patches_applied} )); then
@@ -146,7 +146,7 @@ VCS_INFO_git_handle_patches () {
else
zstyle -s ":vcs_info:${vcs}:${usercontext}:${rrn}" nopatch-format gitmsg || gitmsg="no patch applied"
fi
- hook_com=( applied "${git_applied_s}" unapplied "${git_patches_unapplied}"
+ hook_com=( applied "${git_applied_s}" unapplied "${git_unapplied_s}"
applied-n ${#git_patches_applied} unapplied-n ${#git_patches_unapplied} all-n ${git_all} )
if VCS_INFO_hook 'set-patch-format' "${gitmsg}"; then
zformat -f gitmisc "${gitmsg}" "p:${hook_com[applied]}" "u:${hook_com[unapplied]}" \