Re: [PATCH v2 2/2] bisect: output bisect setup status in bisect log
- From
Taylor Blau <me@ttaylorr.com>
- Date
- May 9, 2022, 16:27 UTC
- Message-ID
- <YnlA4NpNMuyVkQIR@nand.local>
- In-Reply-To
- <xmqqv8ueelip.fsf@gitster.g>
On Mon, May 09, 2022 at 09:08:46AM -0700, Junio C Hamano wrote:
Show 9 quoted lines
> > I don't think so. bisect_log_printf() has only one caller, which is > > bisect_print_status(). Couldn't the latter manage its own strbuf without > > the need to introduce a new varargs function? > > I actually was hoping that other existing informational messages > prefixed with "Bisecting:" (i.e. those that tells you how many steps > are remaining) can go as similar comments to the log file; they are > currently written with plain-vanilla printf(3), and could use this > one instead.
I see. In that case I agree that we this function should take varargs, and it should pass that va_list to strbuf_vaddf().
But this patch shouldn't reimplement the wheel here with a bare vsnprintf() call that could be replaced with a strbuf.
Thanks, Taylor