strbuf: simplify strbuf_expand_literal_cb()
Now that strbuf_expand_literal_cb() is no longer used as a callback, drop its "_cb" name suffix and unused context parameter. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
6f1e2d5279
commit
4416b86c6b
@ -108,7 +108,7 @@ static int show_tree_fmt(const struct object_id *oid, struct strbuf *base,
|
||||
|
||||
if (skip_prefix(format, "%", &format))
|
||||
strbuf_addch(&sb, '%');
|
||||
else if ((len = strbuf_expand_literal_cb(&sb, format, NULL)))
|
||||
else if ((len = strbuf_expand_literal(&sb, format)))
|
||||
format += len;
|
||||
else if (*format != '(')
|
||||
die(_("bad ls-tree format: element '%s' "
|
||||
|
Reference in New Issue
Block a user