fetch: align all "remote -> local" output
commit6bc91f23a6e14d540ab6950b438d40cf678143f0
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 1 Jul 2016 16:03:30 +0000 (1 18:03 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Jul 2016 18:48:25 +0000 (6 11:48 -0700)
treebc5df8e366a7eb76ab2683f9b4a3736bdb629f1e
parent2cb040baa6fcb8a6314a54933cbcb4d3fcb60401
fetch: align all "remote -> local" output

We do align "remote -> local" output by allocating 10 columns to
"remote". That produces aligned output only for short refs. An extra
pass is performed to find the longest remote ref name (that does not
produce a line longer than terminal width) to produce better aligned
output.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c
t/t5510-fetch.sh