]> git.ipfire.org Git - thirdparty/git.git/commit - transport.c
transport: allow summary-width to be computed dynamically
authorJunio C Hamano <gitster@pobox.com>
Fri, 21 Oct 2016 22:28:07 +0000 (15:28 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Oct 2016 22:28:07 +0000 (15:28 -0700)
commit11fd66de9bceac5ffb70ad3ad225203b95d19aa2
treec63314bc1bd51798bddde160e4ce52f95d698092
parent901f3d403ef2416fb287399f8ed9c5dc5fb632f9
transport: allow summary-width to be computed dynamically

Now we have identified three callchains that have a set of refs that
they want to show their <old, new> object names in an aligned output,
we can replace their reference to the constant TRANSPORT_SUMMARY_WIDTH
with a helper function call to transport_summary_width() that takes
the set of ref as a parameter.  This step does not yet iterate over
the refs and compute, which is left as an exercise to the readers.

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