Class PatchApplier

java.lang.Object
org.eclipse.jgit.patch.PatchApplier

public class PatchApplier extends Object
Applies a patch to files and the index.

After instantiating, applyPatch() should be called once.

Since:
6.4
  • Constructor Details

    • PatchApplier

      public PatchApplier(Repository repo)
      Parameters:
      repo - repository to apply the patch in
    • PatchApplier

      public PatchApplier(Repository repo, RevTree beforeTree, ObjectInserter oi)
      Parameters:
      repo - repository to apply the patch in
      beforeTree - ID of the tree to apply the patch in
      oi - to be used for modifying objects
  • Method Details