]> git.ipfire.org Git - thirdparty/git.git/commit - transport.c
transport: pass summary_width down the callchain
authorJunio C Hamano <gitster@pobox.com>
Fri, 21 Oct 2016 21:39:41 +0000 (14:39 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Oct 2016 21:39:41 +0000 (14:39 -0700)
commit7101e10ce7ba917d1b7a6ff73e0008c2be4a43ed
treee4b432e15344a8c20fa7bc4c778f1615950165ee
parent8e3f52d77854a19cb3fd2adee40be84c8a8bdacc
transport: pass summary_width down the callchain

The callchain that originates at transport_print_push_status()
eventually hits a single leaf function, print_ref_status(), that is
used to show from what old object to what new object a ref got
updated, and the width of the part that shows old and new object
names used a constant TRANSPORT_SUMMARY_WIDTH.

Teach the callchain to pass the width down from the top instead.
This allows a future enhancement to compute the necessary display
width before calling down this callchain.

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