strbuf: factor out strbuf_expand_step()
commit44ccb337f10a08bb265b911f86deaf5f3347d967
authorRené Scharfe <l.s.r@web.de>
Sat, 17 Jun 2023 20:41:44 +0000 (17 22:41 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 18 Jun 2023 19:55:30 +0000 (18 12:55 -0700)
tree07762d77de4581021436c997e0f8099219f043b0
parent3c3d0c4242d834c49d77da321425819c175df61c
strbuf: factor out strbuf_expand_step()

Extract the part of strbuf_expand that finds the next placeholder into a
new function.  It allows to build parsers without callback functions and
the overhead imposed by them.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/branch.c
strbuf.c
strbuf.h