X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=strbuf.h;h=52e44c9ab83b3409f4f861db41a138123ba433b1;hb=31f5256c82a36edea3ea2f91e5171e3472878915;hp=fc40873b65124fc98a2e06150b7c8043f05ed4ab;hpb=0890c8aa0dd2f535196babc6846941fdf52e49ba;p=thirdparty%2Fgit.git diff --git a/strbuf.h b/strbuf.h index fc40873b65..52e44c9ab8 100644 --- a/strbuf.h +++ b/strbuf.h @@ -320,6 +320,14 @@ void strbuf_expand(struct strbuf *sb, expand_fn_t fn, void *context); +/** + * Used as callback for `strbuf_expand` to only expand literals + * (i.e. %n and %xNN). The context argument is ignored. + */ +size_t strbuf_expand_literal_cb(struct strbuf *sb, + const char *placeholder, + void *context); + /** * Used as callback for `strbuf_expand()`, expects an array of * struct strbuf_expand_dict_entry as context, i.e. pairs of