Merge commit

8043d64be4ab216efcb6de2d61c668f8142ed4d4

Merge branch 'gr/add-e-use-apply-api'

The application of the edited patch in 'git add -e' has been
refactored to use the internal apply API directly, avoiding the need
to spawn a 'git apply' subprocess.

* gr/add-e-use-apply-api:
  builtin/add.c: replace run_command() with direct apply_all_patches() call

Junio C Hamano <gitster@pobox.com> · 2026-09-07 16:32 UTC

Browse files

Combined diff: only what this merge did beyond taking one side. Added lines are colored by the parent they came from; bold lines came from none of them; removed lines are red.

1 file changed, +2 −1
modified builtin/add.c
@@@ -23,10 -22,9 +22,10 @@@
22 #include "diff.h"
23 #include "read-cache.h"
24 #include "revision.h"
- #include "strvec.h"
25 #include "submodule.h"
26 #include "add-interactive.h"
27 + #include "merge-ll.h"
28 + #include "apply.h"
29
30 static const char * const builtin_add_usage[] = {
31 N_("git add [<options>] [--] <pathspec>..."),