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

Re: [Outreachy PATCH v3 2/2] gpg-interface: use string_list_split*() instead of strbuf_split*()

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 20, 2025, 15:18 UTC
Message-ID
<xmqq1pmx38lu.fsf@gitster.g>
In-Reply-To
<CAD=f0L9Bu2xcOt98n_iB6Td2+pdniOP-wU_KyigJdt+3Oy3wxw@mail.gmail.com>
Bello Olamide <belkid98@gmail.com> writes:
> I am just asking to know if something like this
> should be done within the respective functions or I will need
> to write functions for each and just call here.

Unlike [1/2] that asked for the second string, this one just wants to discard everything after the first LF, so I am not sure if you need any new helper or hand-rolled loop. Wouldn't strchr() and xmemdupz() that were used in my response to [1/2] sufficient for the purpose of this step, too?

Previous: Bello OlamideNext: Bello Olamide
Message 16 of 17 in “gpg-interface.c: use string_list_split*() instead of strbuf_split*()”
  1. 0/2 gpg-interface.c: use string_list_split*() instead of strbuf_split*()Olamide Caleb Bello, Oct 19, 2025
  2. 1/2 gpg-interface: replace strbuf_split*() with string_list_split*()Olamide Caleb Bello, Oct 19, 2025
  3. Junio C HamanoOct 19, 2025
  4. Bello OlamideOct 20, 2025
  5. Junio C HamanoOct 20, 2025
  6. Junio C HamanoOct 20, 2025
  7. Bello OlamideOct 20, 2025
  8. Bello OlamideOct 20, 2025
  9. Kristoffer HaugsbakkOct 20, 2025
  10. Bello OlamideOct 20, 2025
  11. Kristoffer HaugsbakkOct 20, 2025
  12. Bello OlamideOct 20, 2025
  13. 2/2 gpg-interface: use string_list_split*() instead of strbuf_split*()Olamide Caleb Bello, Oct 19, 2025
  14. Junio C HamanoOct 19, 2025
  15. Bello OlamideOct 20, 2025
  16. Junio C HamanoOct 20, 2025
  17. Bello OlamideOct 20, 2025

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.