git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
René Scharfe <l.s.r@web.de>
Date
Mar 24, 2024, 11:17 UTC
Message-ID
<67aa076b-1a73-45a6-b727-6416963a1bd0@web.de>
In-Reply-To
<CAPx1GveKUL1nexRQDYueAVU7G0vp+JzB=5yUf4r4eoRjU49Jcg@mail.gmail.com>
Am 24.03.24 um 10:00 schrieb Chris Torek:
Show 12 quoted lines
> Minor:
>
> On Sun, Mar 24, 2024 at 1:00 AM René Scharfe <l.s.r@web.de> 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".
LOL.  Seems I can only hold one f-word in my mind at a time.
Thank you for catching this!
René
Previous: Chris TorekNext: René Scharfe
Message 4 of 7 in “factor out strbuf_expand_bad_format()”
  1. 1/2 factor out strbuf_expand_bad_format()René Scharfe, Mar 24, 2024
  2. 2/2 cat-file: use strbuf_expand_bad_format()René Scharfe, Mar 24, 2024
  3. Chris TorekMar 24, 2024
  4. René ScharfeMar 24, 2024
  5. 1/2 factor out strbuf_expand_bad_format()René Scharfe, Mar 24, 2024
  6. Junio C HamanoMar 24, 2024
  7. 2/2 cat-file: use strbuf_expand_bad_format()René Scharfe, Mar 24, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.