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

Re: [PATCH v2] builtin/help.c: move strbuf out of help loops

From
Siddharth Shrimali <r.siddharth.shrimali@gmail.com>
Date
Mar 11, 2026, 18:13 UTC
Message-ID
<CAGWgyh_dJX7TteKjwVXUwnmUL5kmZifpA0a4n1RiwRvCBEY5gw@mail.gmail.com>
In-Reply-To
<xmqq1phrtoen.fsf@gitster.g>
On Wed, 11 Mar 2026 at 02:03, Junio C Hamano <gitster@pobox.com> wrote:
Show 9 quoted lines
> Having looked at this patch, I recall somebody else is revamping
> this function already, so this patch would step on their toes.
> Please pay attention to what is going on in the project around the
> code you are touching, and coordinate with others who are working on
> the same code if necessary.
>
> https://lore.kernel.org/git/20260228104654.80831-2-amishhhaaaa@gmail.com/
>
> Thanks.
Hi Junio (CC'ing Amisha),

After looking at the refactor of list_config_help() in the other active thread, I agree that my optimization is no longer necessary.

Amisha's new structure with set_config_vars() and set_config_sections() is much cleaner. Since the logic is now encapsulated in these helpers, my proposed changes would not be applicable.

I'll drop this patch and focus on my other contributions. Thanks for the guidance!

Regards, Siddharth

Previous: Junio C HamanoNext: Amisha Chhajed
Message 5 of 7 in “builtin/help.c: move strbuf out of help loops”
  1. builtin/help.c: move strbuf out of help loopsSiddharth Shrimali, Mar 10, 2026
  2. Patrick SteinhardtMar 10, 2026
  3. builtin/help.c: move strbuf out of help loopsSiddharth Shrimali, Mar 10, 2026
  4. Junio C HamanoMar 10, 2026
  5. Siddharth ShrimaliMar 11, 2026
  6. Amisha ChhajedMar 11, 2026
  7. Junio C HamanoMar 11, 2026

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.