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 and Description |
---|---|
List<DiffEntry> |
DiffCommand.call() |
Modifier and Type | Method and 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.
|
List<DiffEntry> |
DiffFormatter.scan(AbstractTreeIterator a,
AbstractTreeIterator b)
Determine the differences between two trees.
|
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.
|
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. |
Modifier and Type | Method and 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 |
PatchIdDiffFormatter.formatIndexLine(OutputStream o,
DiffEntry ent)
Format index line
|
protected void |
DiffFormatter.formatIndexLine(OutputStream o,
DiffEntry ent)
Format index line
|
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 and 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 and 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 and Description |
---|---|
abstract void |
RenameCallback.renamed(DiffEntry entry)
Called whenever a diff was found that is actually a rename or copy of a
file.
|
Copyright © 2020 Eclipse JGit Project. All rights reserved.