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

Re: [PATCH] string-list.[ch]: remove string_list_init() compatibility function

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 28, 2021, 21:43 UTC
Message-ID
<xmqqzgrwidg3.fsf@gitster.g>
In-Reply-To
<patch-1.1-03c805dd90f-20210928T124939Z-avarab@gmail.com>
Ævar Arnfjörð Bjarmason  <avarab@gmail.com> writes:
Show 17 quoted lines
> Remove this function left over to accommodate in-flight changes, see
> 770fedaf9fb (string-list.[ch]: add a string_list_init_{nodup,dup}(),
> 2021-07-01) for the recent change to add
> "string_list_init_{nodup,dup}()" initializers.
>
> There was only one user of the API left in remote-curl.c. I don't know
> why I didn't include this change to remote-curl.c in
> bc40dfb10a0 (string-list.h users: change to use *_{nodup,dup}(),
> 2021-07-01), perhaps I just missed it.
>
> In any case, let's change that one user to use the new API, as of
> writing this there are no in-flight changes that use, so this seems
> like a good time to drop this before we get any new users of this
> compatibility API.
>
> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
> ---
Thanks.
Previous: Jeff King
Message 3 of 3 in “string-list.[ch]: remove string_list_init() compatibility function”
  1. string-list.[ch]: remove string_list_init() compatibility functionÆvar Arnfjörð Bjarmason, Sep 28, 2021
  2. Jeff KingSep 28, 2021
  3. Junio C HamanoSep 28, 2021

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.