diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2017-01-23 18:15:35 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2017-01-25 04:22:32 +0000 |
commit | edd9798de765049a904e0afa830b191d1932087d (patch) | |
tree | 5250e62cc187a569e1b94a6ba7b3dd9df0d1b3ee /Functions/VCS_Info/Backends/VCS_INFO_get_data_git | |
parent | 270285733442a46cd157ade4600e4073e255a563 (diff) | |
download | zsh-edd9798de765049a904e0afa830b191d1932087d.tar.gz zsh-edd9798de765049a904e0afa830b191d1932087d.tar.xz zsh-edd9798de765049a904e0afa830b191d1932087d.zip |
40403/0003: vcs_info set-patch-format helper: Part #3.
Diffstat (limited to 'Functions/VCS_Info/Backends/VCS_INFO_get_data_git')
-rw-r--r-- | Functions/VCS_Info/Backends/VCS_INFO_get_data_git | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git index 974f393cf..4d251497c 100644 --- a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git +++ b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git @@ -126,13 +126,9 @@ VCS_INFO_git_handle_patches () { (( git_all = ${#git_patches_applied} + ${#git_patches_unapplied} )) VCS_INFO_set-patch-format 'git_patches_applied' 'git_applied_s' \ - 'git_patches_unapplied' 'git_unapplied_s' + 'git_patches_unapplied' 'git_unapplied_s' \ + ":vcs_info:${vcs}:${usercontext}:${rrn}" gitmsg - if (( ${#git_patches_applied} )); then - zstyle -s ":vcs_info:${vcs}:${usercontext}:${rrn}" patch-format gitmsg || gitmsg="%p (%n applied)" - else - zstyle -s ":vcs_info:${vcs}:${usercontext}:${rrn}" nopatch-format gitmsg || gitmsg="no patch applied" - fi 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 |