diff options
author | Karthik Nayak <karthik.188@gmail.com> | 2015-09-23 18:11:06 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-09-23 18:41:01 (GMT) |
commit | 1051e40dba16bd8e490c41ce926c8c36b913de72 (patch) | |
tree | 6dbf0b12a521ca49c80fe9676b105ecb96605c08 /ref-filter.c | |
parent | 5242860f548d1869ac2779726ad496f0ae8ab5ca (diff) | |
download | git-1051e40dba16bd8e490c41ce926c8c36b913de72.zip git-1051e40dba16bd8e490c41ce926c8c36b913de72.tar.gz git-1051e40dba16bd8e490c41ce926c8c36b913de72.tar.bz2 |
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 'ref-filter.c')
0 files changed, 0 insertions, 0 deletions