Package | Description |
---|---|
org.eclipse.jgit.api |
High-level API commands (the porcelain of JGit).
|
org.eclipse.jgit.diff |
Comparing file contents by computing diffs.
|
org.eclipse.jgit.patch |
Patch file parser and data structure.
|
org.eclipse.jgit.revwalk |
Walking revision graphs (commit history).
|
Modifier and Type | Method | Description |
---|---|---|
List<DiffEntry> |
DiffCommand.call() |
Executes the
Diff command with all the options and parameters
collected by the setter methods (e.g. |
Modifier and Type | Method | Description |
---|---|---|
List<DiffEntry> |
RenameDetector.compute() |
Detect renames in the current file set.
|
List<DiffEntry> |
RenameDetector.compute(ContentSource.Pair reader,
ProgressMonitor pm) |
Detect renames in the current file set.
|
List<DiffEntry> |
RenameDetector.compute(ObjectReader reader,
ProgressMonitor pm) |
Detect renames in the current file set.
|
List<DiffEntry> |
RenameDetector.compute(ProgressMonitor pm) |
Detect renames in the current file set.
|
static List<DiffEntry> |
DiffEntry.scan(TreeWalk walk) |
Convert the TreeWalk into DiffEntry headers.
|
static List<DiffEntry> |
DiffEntry.scan(TreeWalk walk,
boolean includeTrees) |
Convert the TreeWalk into DiffEntry headers, depending on
includeTrees it will add tree objects into result or not. |
static List<DiffEntry> |
DiffEntry.scan(TreeWalk walk,
boolean includeTrees,
TreeFilter[] markTreeFilters) |
Convert the TreeWalk into DiffEntry headers, depending on
includeTrees it will add tree objects into result or not. |
List<DiffEntry> |
DiffFormatter.scan(AnyObjectId a,
AnyObjectId b) |
Determine the differences between two trees.
|
List<DiffEntry> |
DiffFormatter.scan(RevTree a,
RevTree b) |
Determine the differences between two trees.
|
List<DiffEntry> |
DiffFormatter.scan(AbstractTreeIterator a,
AbstractTreeIterator b) |
Determine the differences between two trees.
|
Modifier and Type | Method | Description |
---|---|---|
void |
RenameDetector.add(DiffEntry entry) |
Add an entry to be considered for rename detection.
|
void |
DiffFormatter.format(DiffEntry ent) |
Format a patch script for one file entry.
|
protected void |
DiffFormatter.formatIndexLine(OutputStream o,
DiffEntry ent) |
|
protected void |
PatchIdDiffFormatter.formatIndexLine(OutputStream o,
DiffEntry ent) |
|
ObjectLoader |
ContentSource.Pair.open(DiffEntry.Side side,
DiffEntry ent) |
Open the object.
|
long |
ContentSource.Pair.size(DiffEntry.Side side,
DiffEntry ent) |
Determine the size of the object.
|
FileHeader |
DiffFormatter.toFileHeader(DiffEntry ent) |
Creates a
FileHeader representing the given DiffEntry |
Modifier and Type | Method | Description |
---|---|---|
void |
RenameDetector.addAll(Collection<DiffEntry> entriesToAdd) |
Add entries to be considered for rename detection.
|
void |
DiffFormatter.format(List<? extends DiffEntry> entries) |
Format a patch script from a list of difference entries.
|
Modifier and Type | Class | Description |
---|---|---|
class |
CombinedFileHeader |
A file in the Git "diff --cc" or "diff --combined" format.
|
class |
FileHeader |
Patch header describing an action for a single file path.
|
Modifier and Type | Method | Description |
---|---|---|
abstract void |
RenameCallback.renamed(DiffEntry entry) |
Called whenever a diff was found that is actually a rename or copy of a
file.
|
Copyright © 2018. All rights reserved.