fetch: pass summary_width down the callchain
commit901f3d403ef2416fb287399f8ed9c5dc5fb632f9
authorJunio C Hamano <gitster@pobox.com>
Fri, 21 Oct 2016 22:22:55 +0000 (21 15:22 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Oct 2016 22:22:55 +0000 (21 15:22 -0700)
tree6f65c38eded340d5ce2c5eabb57bfdc78b5ca931
parent7101e10ce7ba917d1b7a6ff73e0008c2be4a43ed
fetch: pass summary_width down the callchain

The leaf function on the "fetch" side that uses TRANSPORT_SUMMARY_WIDTH
constant is builtin/fetch.c::format_display() and it has two distinct
callchains.  The one that reports the primary result of fetch originates
at store_updated_refs(); the other one that reports the pruning of
the remote-tracking refs originates at prune_refs().

Teach these two places to pass summary_width down the callchain,
just like we did for the "push" side in the previous commit.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c