diff options
author | Karthik Nayak <karthik.188@gmail.com> | 2015-09-23 23:41:06 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-09-23 11:41:01 -0700 |
commit | 1051e40dba16bd8e490c41ce926c8c36b913de72 (patch) | |
tree | 6dbf0b12a521ca49c80fe9676b105ecb96605c08 /prompt.c | |
parent | tag.c: implement '--merged' and '--no-merged' options (diff) | |
download | tgif-1051e40dba16bd8e490c41ce926c8c36b913de72.tar.xz |
branch: refactor width computation
Remove unnecessary variables from ref_list and ref_item which were
used for width computation. This is to make ref_item similar to
ref-filter's ref_array_item. This will ensure a smooth port of
branch.c to use ref-filter APIs in further patches.
Previously the maxwidth was computed when inserting the refs into the
ref_list. Now, we obtain the entire ref_list and then compute
maxwidth.
Based-on-patch-by: Jeff King <peff@peff.net>
Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'prompt.c')
0 files changed, 0 insertions, 0 deletions