Package | Description |
---|---|
org.eclipse.jgit.api |
High-level API commands (the porcelain of JGit).
|
org.eclipse.jgit.blame |
Computing blame/annotate information of files.
|
org.eclipse.jgit.diff |
Comparing file contents by computing diffs.
|
org.eclipse.jgit.patch |
Patch file parser and data structure.
|
org.eclipse.jgit.pgm | |
org.eclipse.jgit.revwalk |
Walking revision graphs (commit history).
|
Modifier and Type | Method and Description |
---|---|
java.util.List<DiffEntry> |
DiffCommand.call() |
Modifier and Type | Method and Description |
---|---|
private DiffEntry |
BlameGenerator.findRename(RevCommit parent,
RevCommit commit,
PathFilter path) |
Modifier and Type | Method and Description |
---|---|
private static boolean |
BlameGenerator.isRename(DiffEntry ent) |
Modifier and Type | Field and Description |
---|---|
private java.util.List<DiffEntry> |
RenameDetector.added |
private java.util.List<DiffEntry> |
RenameDetector.deleted |
private static java.util.Comparator<DiffEntry> |
RenameDetector.DIFF_COMPARATOR |
private java.util.List<DiffEntry> |
SimilarityRenameDetector.dsts
All destinations to consider looking for a rename.
|
private java.util.List<DiffEntry> |
RenameDetector.entries |
private java.util.List<DiffEntry> |
SimilarityRenameDetector.out |
private java.util.List<DiffEntry> |
SimilarityRenameDetector.srcs
All sources to consider for copies or renames.
|
Modifier and Type | Method and Description |
---|---|
(package private) static DiffEntry |
DiffEntry.add(java.lang.String path,
AnyObjectId id) |
private static DiffEntry |
RenameDetector.bestPathMatch(DiffEntry src,
java.util.List<DiffEntry> list)
Find the best match by file path for a given DiffEntry from a list of
DiffEntrys.
|
(package private) static DiffEntry |
DiffEntry.delete(java.lang.String path,
AnyObjectId id) |
private static DiffEntry |
RenameDetector.exactCopy(DiffEntry src,
DiffEntry dst) |
private static DiffEntry |
RenameDetector.exactRename(DiffEntry src,
DiffEntry dst) |
(package private) static DiffEntry |
DiffEntry.modify(java.lang.String path) |
(package private) static DiffEntry |
DiffEntry.pair(DiffEntry.ChangeType changeType,
DiffEntry src,
DiffEntry dst,
int score) |
Modifier and Type | Method and Description |
---|---|
(package private) static java.util.List<DiffEntry> |
DiffEntry.breakModify(DiffEntry entry)
Breaks apart a DiffEntry into two entries, one DELETE and one ADD.
|
private static java.util.List<DiffEntry> |
SimilarityRenameDetector.compactDstList(java.util.List<DiffEntry> in) |
private static java.util.List<DiffEntry> |
SimilarityRenameDetector.compactSrcList(java.util.List<DiffEntry> in) |
java.util.List<DiffEntry> |
RenameDetector.compute()
Detect renames in the current file set.
|
java.util.List<DiffEntry> |
RenameDetector.compute(ContentSource.Pair reader,
ProgressMonitor pm)
Detect renames in the current file set.
|
java.util.List<DiffEntry> |
RenameDetector.compute(ObjectReader reader,
ProgressMonitor pm)
Detect renames in the current file set.
|
java.util.List<DiffEntry> |
RenameDetector.compute(ProgressMonitor pm)
Detect renames in the current file set.
|
private java.util.List<DiffEntry> |
DiffFormatter.detectRenames(java.util.List<DiffEntry> files) |
(package private) java.util.List<DiffEntry> |
SimilarityRenameDetector.getLeftOverDestinations() |
(package private) java.util.List<DiffEntry> |
SimilarityRenameDetector.getLeftOverSources() |
(package private) java.util.List<DiffEntry> |
SimilarityRenameDetector.getMatches() |
java.util.List<DiffEntry> |
DiffFormatter.scan(AbstractTreeIterator a,
AbstractTreeIterator b)
Determine the differences between two trees.
|
java.util.List<DiffEntry> |
DiffFormatter.scan(AnyObjectId a,
AnyObjectId b)
Determine the differences between two trees.
|
java.util.List<DiffEntry> |
DiffFormatter.scan(RevTree a,
RevTree b)
Determine the differences between two trees.
|
static java.util.List<DiffEntry> |
DiffEntry.scan(TreeWalk walk)
Convert the TreeWalk into DiffEntry headers.
|
static java.util.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 java.util.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. |
private java.util.List<DiffEntry> |
DiffFormatter.updateFollowFilter(java.util.List<DiffEntry> files) |
Modifier and Type | Method and Description |
---|---|
void |
RenameDetector.add(DiffEntry entry)
Add an entry to be considered for rename detection.
|
private static DiffEntry |
RenameDetector.bestPathMatch(DiffEntry src,
java.util.List<DiffEntry> list)
Find the best match by file path for a given DiffEntry from a list of
DiffEntrys.
|
(package private) static java.util.List<DiffEntry> |
DiffEntry.breakModify(DiffEntry entry)
Breaks apart a DiffEntry into two entries, one DELETE and one ADD.
|
private int |
RenameDetector.calculateModifyScore(ContentSource.Pair reader,
DiffEntry d) |
private DiffFormatter.FormatResult |
DiffFormatter.createFormatResult(DiffEntry ent) |
private static DiffEntry |
RenameDetector.exactCopy(DiffEntry src,
DiffEntry dst) |
private static DiffEntry |
RenameDetector.exactRename(DiffEntry src,
DiffEntry dst) |
void |
DiffFormatter.format(DiffEntry ent)
Format a patch script for one file entry.
|
private void |
DiffFormatter.formatHeader(java.io.ByteArrayOutputStream o,
DiffEntry ent) |
protected void |
DiffFormatter.formatIndexLine(java.io.OutputStream o,
DiffEntry ent)
Format index line
|
protected void |
PatchIdDiffFormatter.formatIndexLine(java.io.OutputStream o,
DiffEntry ent)
Format index line
|
private void |
DiffFormatter.formatOldNewPaths(java.io.ByteArrayOutputStream o,
DiffEntry ent) |
private SimilarityIndex |
SimilarityRenameDetector.hash(DiffEntry.Side side,
DiffEntry ent) |
private static AbbreviatedObjectId |
RenameDetector.id(DiffEntry de) |
private static boolean |
DiffFormatter.isRename(DiffEntry ent) |
private static FileMode |
RenameDetector.mode(DiffEntry de) |
ObjectLoader |
ContentSource.Pair.open(DiffEntry.Side side,
DiffEntry ent)
Open the object.
|
private RawText |
DiffFormatter.open(DiffEntry.Side side,
DiffEntry entry) |
(package private) static DiffEntry |
DiffEntry.pair(DiffEntry.ChangeType changeType,
DiffEntry src,
DiffEntry dst,
int score) |
private static java.lang.String |
RenameDetector.path(DiffEntry de) |
long |
ContentSource.Pair.size(DiffEntry.Side side,
DiffEntry ent)
Determine the size of the object.
|
private long |
SimilarityRenameDetector.size(DiffEntry.Side side,
DiffEntry ent) |
FileHeader |
DiffFormatter.toFileHeader(DiffEntry ent)
Creates a
FileHeader representing the
given DiffEntry |
Modifier and Type | Method and Description |
---|---|
void |
RenameDetector.addAll(java.util.Collection<DiffEntry> entriesToAdd)
Add entries to be considered for rename detection.
|
private static DiffEntry |
RenameDetector.bestPathMatch(DiffEntry src,
java.util.List<DiffEntry> list)
Find the best match by file path for a given DiffEntry from a list of
DiffEntrys.
|
private static java.util.List<DiffEntry> |
SimilarityRenameDetector.compactDstList(java.util.List<DiffEntry> in) |
private static java.util.List<DiffEntry> |
SimilarityRenameDetector.compactSrcList(java.util.List<DiffEntry> in) |
private java.util.List<DiffEntry> |
DiffFormatter.detectRenames(java.util.List<DiffEntry> files) |
void |
DiffFormatter.format(java.util.List<? extends DiffEntry> entries)
Format a patch script from a list of difference entries.
|
private boolean |
DiffFormatter.isAdd(java.util.List<DiffEntry> files) |
private java.util.HashMap<AbbreviatedObjectId,java.lang.Object> |
RenameDetector.populateMap(java.util.List<DiffEntry> diffEntries,
ProgressMonitor pm) |
private java.util.List<DiffEntry> |
DiffFormatter.updateFollowFilter(java.util.List<DiffEntry> files) |
Constructor and Description |
---|
SimilarityRenameDetector(ContentSource.Pair reader,
java.util.List<DiffEntry> srcs,
java.util.List<DiffEntry> dsts) |
SimilarityRenameDetector(ContentSource.Pair reader,
java.util.List<DiffEntry> srcs,
java.util.List<DiffEntry> dsts) |
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 |
---|---|
(package private) static void |
Diff.nameStatus(ThrowingPrintWriter out,
java.util.List<DiffEntry> files) |
Modifier and Type | Method and Description |
---|---|
private static boolean |
TreeRevFilter.isRename(DiffEntry ent) |
abstract void |
RenameCallback.renamed(DiffEntry entry)
Called whenever a diff was found that is actually a rename or copy of a
file.
|