Package | Description |
---|---|
org.eclipse.jgit.diff |
Comparing file contents by computing diffs.
|
org.eclipse.jgit.patch |
Patch file parser and data structure.
|
Modifier and Type | Field and Description |
---|---|
protected EditList |
MyersDiff.edits
The list of edits found during the last call to
MyersDiff.calculateEdits(Edit) |
Modifier and Type | Method and Description |
---|---|
<S extends Sequence> |
DiffAlgorithm.diff(SequenceComparator<? super S> cmp,
S a,
S b)
Compare two sequences and identify a list of edits between them.
|
<S extends Sequence> |
LowLevelDiffAlgorithm.diffNonCommon(SequenceComparator<? super S> cmp,
S a,
S b) |
abstract <S extends Sequence> |
DiffAlgorithm.diffNonCommon(SequenceComparator<? super S> cmp,
S a,
S b)
Compare two sequences and identify a list of edits between them.
|
static EditList |
EditList.singleton(Edit edit)
Construct an edit list containing a single edit.
|
static <S extends Sequence> |
Subsequence.toBase(EditList edits,
Subsequence<S> a,
Subsequence<S> b)
Adjust the Edits to reflect positions in the base sequence.
|
Modifier and Type | Method and Description |
---|---|
abstract <S extends Sequence> |
LowLevelDiffAlgorithm.diffNonCommon(EditList edits,
HashedSequenceComparator<S> cmp,
HashedSequence<S> a,
HashedSequence<S> b,
Edit region)
Compare two sequences and identify a list of edits between them.
|
<S extends Sequence> |
HistogramDiff.diffNonCommon(EditList edits,
HashedSequenceComparator<S> cmp,
HashedSequence<S> a,
HashedSequence<S> b,
Edit region) |
void |
DiffFormatter.format(EditList edits,
RawText a,
RawText b)
Formats a list of edits in unified diff format
|
static <S extends Sequence> |
Subsequence.toBase(EditList edits,
Subsequence<S> a,
Subsequence<S> b)
Adjust the Edits to reflect positions in the base sequence.
|
Modifier and Type | Method and Description |
---|---|
EditList |
HunkHeader.toEditList() |
EditList |
FileHeader.toEditList() |
Constructor and Description |
---|
FileHeader(byte[] headerLines,
EditList edits,
FileHeader.PatchType type)
Constructs a new FileHeader
|
Copyright © 2017 Eclipse JGit Project. All rights reserved.