Interface GitPatch

All Superinterfaces:
Source, TextBasedDiff
All Known Implementing Classes:
GitPatch.SimpleGitPatch, PatchDiff

public interface GitPatch extends Source, TextBasedDiff
Interface for patches from a git repository. A git patch is a TextBasedDiff from which VariationDiffs can be created.
  • Method Details

    • getChangeType

      org.eclipse.jgit.diff.DiffEntry.ChangeType getChangeType()
      Returns the change type of this patch (e.g., file insertion or modification).
    • getFileName

      String getFileName(Time time)
      Returns the name of the patched file at the given time.
    • getCommitHash

      String getCommitHash()
      Returns the hash of the commit introducing the change.
    • getParentCommitHash

      String getParentCommitHash()
      Returns the hash of the parent commit regarding which the diff was created.
    • shallowClone

      GitPatch shallowClone()
      Creates a shallow clone. A shallow clone should return the very same values for the methods of this interface. Other behaviour is unspecified.
      Returns:
      A clone that acts equal with respect to this interface.