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

Re: [PATCH v4] builtin/add.c: replace run_command() with direct apply_all_patches() call

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 26, 2026, 17:16 UTC
Message-ID
<xmqqbjaoiyzx.fsf@gitster.g>
In-Reply-To
<xmqq8q6to4em.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
Show 5 quoted lines
> Now the way "apply" API is used in this new code path should be
> pretty much parallel to existing "git apply" and "git am" code
> paths, we should be fine.  I do not use "git add -e", but those who
> do who may care more more deeply about keeping this feature working
> than I do may want to lend an extra pair of eyes on this patch.

And nobody seems to be interested in seeing this topic move forward, unfortunately. After reading the patch again, I think this is safe and correct, and if I merge the topic, one of three things can happen.

 (1) the patch does not regress anything unexpectedly, or
 (2) the patch breaks "add -e" completely but the feature is not
     used by anybody and nobody will notice, or
 (3) the patch breaks "add -e" and the its users will start
     complaining too late.

Reverting a merge would not be too involved as the patch is small-ish, so even in case (3) it won't be too much trouble to deal with fallouts. So let me mark the topic for 'next' for now.

It still is not too late for "add -e" users to interject, though.
Thanks.
Previous: Junio C Hamano
Message 9 of 9 in “builtin/add.c: replace run_command() with direct apply_all_patches() call”
  1. builtin/add.c: replace run_command() with direct apply_all_patches() callGatla Vishweshwar Reddy, Jul 9, 2026
  2. Junio C HamanoJul 10, 2026
  3. builtin/add.c: replace run_command() with direct apply_all_patches() callGatla Vishweshwar Reddy, Jul 10, 2026
  4. Junio C HamanoJul 10, 2026
  5. builtin/add.c: replace run_command() with direct apply_all_patches() callGatla Vishweshwar Reddy, Jul 10, 2026
  6. Junio C HamanoJul 11, 2026
  7. builtin/add.c: replace run_command() with direct apply_all_patches() callGatla Vishweshwar Reddy, Jul 11, 2026
  8. Junio C HamanoJul 29, 2026
  9. Junio C HamanoAug 26, 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.