]> source.dussan.org Git - jgit.git/commit
Split out ApplyCommand logic to PatchApplier class 26/194426/62
authorNitzan Gur-Furman <nitzan@google.com>
Wed, 31 Aug 2022 17:26:13 +0000 (19:26 +0200)
committerNitzan Gur-Furman <nitzan@google.com>
Thu, 15 Sep 2022 07:15:55 +0000 (09:15 +0200)
commitacde6c8f5b538f900cfede9035584fd2ed654154
tree192bbd25325464bbe62d01fa050ab86f2038f0bd
parent57087e2b92dda967f6e5e0e0a017afae2f782a80
Split out ApplyCommand logic to PatchApplier class

PatchApplier now routes updates through the index. This has two
results:

* we can now execute patches in-memory.

* the JGit apply command will now always update the
index to match the working tree.

Change-Id: Id60a88232f05d0367787d038d2518c670cdb543f
Co-authored-by: Han-Wen Nienhuys <hanwen@google.com>
Co-authored-by: Nitzan Gur-Furman <nitzan@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/ApplyCommandTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/patch/PatchApplierTest.java [new file with mode: 0644]
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/api/ApplyCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/patch/PatchApplier.java [new file with mode: 0644]