builtin-branch: fix -v for --[no-]merged
authorLars Hjemli <hjemli@gmail.com>
Sat, 26 Jul 2008 10:27:25 +0000 (12:27 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 27 Jul 2008 21:14:01 +0000 (14:14 -0700)
commitb6f637d199fed238179865a38f180fccc37ee8cc
tree80fb701bb45bf2bf35ce73ce948a431cc1244e2d
parent7950cda782fc313569a8a09be0bfab234689627a
builtin-branch: fix -v for --[no-]merged

After the optimization to --[no-]merged logic, the calculation of the
width of the longest refname to be shown might become inaccurate (since
the matching against merge_filter is performed after adding refs to
ref_list). This patch forces a recalculation of maxwidth when it might
be needed.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-branch.c