Thread (6 messages) 6 messages, 2 authors, 2024-03-24

Re: [PATCH 1/2] factor out strbuf_expand_bad_format()

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:
quoted hunk ↗ jump to hunk
@@ -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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help