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 | Description |
---|---|---|
protected EditList |
MyersDiff.edits |
The list of edits found during the last call to
MyersDiff.calculateEdits(Edit) |
Modifier and Type | Method | 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.
|
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.
|
<S extends Sequence> |
LowLevelDiffAlgorithm.diffNonCommon(SequenceComparator<? super S> cmp,
S a,
S b) |
|
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 | Description |
---|---|---|
<S extends Sequence> |
HistogramDiff.diffNonCommon(EditList edits,
HashedSequenceComparator<S> cmp,
HashedSequence<S> a,
HashedSequence<S> b,
Edit region) |
|
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.
|
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 | Description |
---|---|---|
EditList |
FileHeader.toEditList() |
|
EditList |
HunkHeader.toEditList() |
Constructor | Description |
---|---|
FileHeader(byte[] headerLines,
EditList edits,
FileHeader.PatchType type) |
Constructs a new FileHeader
|
Copyright © 2018. All rights reserved.