Re: [GSoC PATCH] backfill: add --[no-]progress option
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 7, 2026, 19:42 UTC
- Message-ID
- <xmqq5x624kwb.fsf@gitster.g>
- In-Reply-To
- <ktjgf2gyf5wkktiquy4cfzdcifd2yhqk3mngckaih4bwca6fda@nkcju65ku7hf>
Trieu Huynh <vikingtc4@gmail.com> writes:
Show 14 quoted lines
>> >> + display_progress(ctx->progress, ++ctx->batches_requested); >> > >> > This looks correct. My preference is to not use prefix operators >> > like this on struct members (it reads like you are incrementing >> > 'ctx' and not 'batches_requested', even though it is correct). >> >> Thanks for paying extra attention to such details. In general, >> post-increment and pre-decrement are the norm when evaluated in a >> void context, so the use of pre-increment above violates that norm >> too. >> > Thanks for pointing it out. Will update, eg: > ++counter; > foo(counter);
I think you meant "counter++; foo(counter);" instead. Otherwise, the first line is exactly a pre-increment in a void context.