move show_pack_info() where it belongs

This is called when verify_pack() has its verbose argument set, and
verbose in this context makes sense only for the actual 'git verify-pack'
command.  Therefore let's move show_pack_info() to builtin-verify-pack.c
instead and remove useless verbose argument from verify_pack().

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Nicolas Pitre
2008-06-24 23:18:17 -04:00
committed by Junio C Hamano
parent 99093238bb
commit 77d3ecee85
6 changed files with 67 additions and 70 deletions

View File

@ -783,7 +783,7 @@ static void finish_request(struct transfer_request *request)
lst = &((*lst)->next);
*lst = (*lst)->next;
if (!verify_pack(target, 0))
if (!verify_pack(target))
install_packed_git(target);
else
remote->can_update_info_refs = 0;