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/VCS_INFO_quilt | |
| parent | 40403/0002: vcs_info set-patch-format helper: Part #2. (diff) | |
| download | zsh-edd9798de765049a904e0afa830b191d1932087d.tar zsh-edd9798de765049a904e0afa830b191d1932087d.tar.gz zsh-edd9798de765049a904e0afa830b191d1932087d.tar.bz2 zsh-edd9798de765049a904e0afa830b191d1932087d.tar.lz zsh-edd9798de765049a904e0afa830b191d1932087d.tar.xz zsh-edd9798de765049a904e0afa830b191d1932087d.tar.zst zsh-edd9798de765049a904e0afa830b191d1932087d.zip | |
40403/0003: vcs_info set-patch-format helper: Part #3.
Diffstat (limited to 'Functions/VCS_Info/VCS_INFO_quilt')
| -rw-r--r-- | Functions/VCS_Info/VCS_INFO_quilt | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Functions/VCS_Info/VCS_INFO_quilt b/Functions/VCS_Info/VCS_INFO_quilt index 1872fc7fa..a81da1c49 100644 --- a/Functions/VCS_Info/VCS_INFO_quilt +++ b/Functions/VCS_Info/VCS_INFO_quilt @@ -174,13 +174,9 @@ function VCS_INFO_quilt() { all=( ${(Oa)applied} ${unapplied} ) VCS_INFO_set-patch-format 'applied' 'applied_string' \ - 'unapplied' 'unapplied_string' + 'unapplied' 'unapplied_string' \ + ${context} qstring - if (( ${#applied} )); then - zstyle -s "${context}" patch-format qstring || qstring="%p (%n applied)" - else - zstyle -s "${context}" nopatch-format qstring || qstring="no patch applied" - fi hook_com=( applied "${applied_string}" unapplied "${unapplied_string}" applied-n ${#applied} unapplied-n ${#unapplied} all-n ${#all} ) if VCS_INFO_hook 'set-patch-format' ${qstring}; then |
