diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2017-02-01 19:05:45 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2017-02-03 18:14:01 +0000 |
commit | 33c0a104482a0299d5d065b88c180ea6975269c0 (patch) | |
tree | fd875fba09b03a458d424b062e661a99cab52f11 /Functions/VCS_Info/VCS_INFO_quilt | |
parent | 9211d7f2777abaedfacf98812104d579c3b861f3 (diff) | |
download | zsh-33c0a104482a0299d5d065b88c180ea6975269c0.tar.gz zsh-33c0a104482a0299d5d065b88c180ea6975269c0.tar.xz zsh-33c0a104482a0299d5d065b88c180ea6975269c0.zip |
40480: vcs_info set-patch-format: Eliminate the remaining code duplication.
Diffstat (limited to 'Functions/VCS_Info/VCS_INFO_quilt')
-rw-r--r-- | Functions/VCS_Info/VCS_INFO_quilt | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Functions/VCS_Info/VCS_INFO_quilt b/Functions/VCS_Info/VCS_INFO_quilt index 1874c8b2f..381b58489 100644 --- a/Functions/VCS_Info/VCS_INFO_quilt +++ b/Functions/VCS_Info/VCS_INFO_quilt @@ -174,14 +174,8 @@ function VCS_INFO_quilt() { VCS_INFO_set-patch-format 'applied' 'applied_string' \ 'unapplied' 'unapplied_string' \ ${context} qstring \ - '' - if VCS_INFO_hook 'set-patch-format' ${qstring}; then - zformat -f qstring "${qstring}" "p:${hook_com[applied]}" "u:${hook_com[unapplied]}" \ - "n:${#applied}" "c:${#unapplied}" "a:${hook_com[all-n]}" - else - qstring=${hook_com[patch-replace]} - fi - hook_com=() + '' '' + qstring=$REPLY case ${mode} in (standalone) |