]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'gr/add-e-use-apply-api' into seen
authorJunio C Hamano <gitster@pobox.com>
Thu, 30 Jul 2026 17:44:36 +0000 (10:44 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 Jul 2026 17:44:36 +0000 (10:44 -0700)
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

1  2 
builtin/add.c

diff --cc builtin/add.c
index eab8f03cad31d6f918c6550ee69a225cf47de165,20a86a16114191839e459688c334f812c722a0f8..629d4366b625f37435097d37f2ed64e8b27a4c6c
  #include "diff.h"
  #include "read-cache.h"
  #include "revision.h"
- #include "strvec.h"
  #include "submodule.h"
  #include "add-interactive.h"
 +#include "merge-ll.h"
+ #include "apply.h"
  
  static const char * const builtin_add_usage[] = {
        N_("git add [<options>] [--] <pathspec>..."),