replace strbuf_expand_dict_cb() with strbuf_expand_step()
commit39dbd49b4138b6cdc9fb73e317d4e9f06df0c5c5
authorRené Scharfe <l.s.r@web.de>
Sat, 17 Jun 2023 20:42:26 +0000 (17 22:42 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 18 Jun 2023 19:55:30 +0000 (18 12:55 -0700)
tree2b722043cd3649825a6cf80157d174135e251071
parent44ccb337f10a08bb265b911f86deaf5f3347d967
replace strbuf_expand_dict_cb() with strbuf_expand_step()

Avoid the overhead of setting up a dictionary and passing it via
strbuf_expand() to strbuf_expand_dict_cb() by using strbuf_expand_step()
in a loop instead.  It requires explicit handling of %% and unrecognized
placeholders, but is more direct and simpler overall, and expands only
on demand.

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