Re: [PATCH] wt-status.c: improve readability for wt_shortstatus_print
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 17, 2017, 05:25 UTC
- Message-ID
- <xmqqd1dga30a.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20170316225108.GB9135@aiede.mtv.corp.google.com>
Jonathan Nieder <jrnieder@gmail.com> writes:
Show 10 quoted lines
> Stefan Beller wrote: > >> Subject: wt-status.c: improve readability for wt_shortstatus_print > > Maybe: > > wt-status: simplify by using for_each_string_list_item > > Improve readability by using the for_each_string_list_item helper > instead of manually iterating with an integer counter.
Much better. That matches what I read from the patch when I skimmed it, but it did leave me wondering if I missed something else.
Show 6 quoted lines
>> Signed-off-by: Stefan Beller <sbeller@google.com> >> --- >> wt-status.c | 20 +++++--------------- >> 1 file changed, 5 insertions(+), 15 deletions(-) > > I like the diffstat. :)
Me too ;-)
> > With or without a clarified commit message, > Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>