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/Backends/VCS_INFO_get_data_git | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'Functions/VCS_Info/Backends/VCS_INFO_get_data_git') diff --git a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git index 84a91a74f..1b25b1c7c 100644 --- a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git +++ b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git @@ -127,16 +127,8 @@ VCS_INFO_git_handle_patches () { VCS_INFO_set-patch-format 'git_patches_applied' 'git_applied_s' \ 'git_patches_unapplied' 'git_unapplied_s' \ ":vcs_info:${vcs}:${usercontext}:${rrn}" gitmsg \ - '' - - if VCS_INFO_hook 'set-patch-format' "${gitmsg}"; then - zformat -f gitmisc "${gitmsg}" "p:${hook_com[applied]}" "u:${hook_com[unapplied]}" \ - "n:${#git_patches_applied}" "c:${#git_patches_unapplied}" \ - "a:${hook_com[all-n]}" - else - gitmisc=${hook_com[patch-replace]} - fi - hook_com=() + '' '' + gitmisc=$REPLY } gitdir=${vcs_comm[gitdir]} -- cgit 1.4.1