Re: [PATCH 1/2] factor out strbuf_expand_bad_format()
From: Chris Torek <hidden>
Date: 2024-03-24 09:00:48
From: Chris Torek <hidden>
Date: 2024-03-24 09:00:48
Minor: On Sun, Mar 24, 2024 at 1:00 AM René Scharfe [off-list ref] wrote:
@@ -308,8 +301,7 @@ static void show_ce_fmt(struct repository *repo, const struct cache_entry *ce, else if (skip_prefix(format, "(path)", &format)) write_name_to_buf(&sb, fullname); else - die(_("bad ls-files format: %%%.*s"), - (int)(end - format + 1), format); + strbuf_expand_bad_format(format, "ls-format");
This last string constant is clearly supposed to be "ls-files". Chris