From 33c0a104482a0299d5d065b88c180ea6975269c0 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Wed, 1 Feb 2017 19:05:45 +0000 Subject: 40480: vcs_info set-patch-format: Eliminate the remaining code duplication. --- Functions/VCS_Info/VCS_INFO_quilt | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'Functions/VCS_Info/VCS_INFO_quilt') 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) -- cgit v1.2.3