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.
|
Modifier and Type | Method and Description |
---|---|
private void |
ApplyCommand.apply(java.io.File f,
FileHeader fh) |
private boolean |
ApplyCommand.isNoNewlineAtEndOfFile(FileHeader fh) |
Modifier and Type | Field and Description |
---|---|
(package private) FileHeader |
DiffFormatter.FormatResult.header |
Modifier and Type | Method and Description |
---|---|
FileHeader |
DiffFormatter.toFileHeader(DiffEntry ent)
Creates a
FileHeader representing the
given DiffEntry |
Modifier and Type | Method and Description |
---|---|
void |
DiffFormatter.format(FileHeader head,
RawText a,
RawText b)
Format a patch script, reusing a previously parsed FileHeader.
|
Modifier and Type | Class and Description |
---|---|
class |
CombinedFileHeader
A file in the Git "diff --cc" or "diff --combined" format.
|
Modifier and Type | Field and Description |
---|---|
(package private) FileHeader |
HunkHeader.file |
private FileHeader |
BinaryHunk.file |
Modifier and Type | Field and Description |
---|---|
private java.util.List<FileHeader> |
Patch.files
The files, in the order they were parsed out of the input.
|
Modifier and Type | Method and Description |
---|---|
FileHeader |
HunkHeader.getFileHeader()
Get header for the file this hunk applies to.
|
FileHeader |
BinaryHunk.getFileHeader()
Get header for the file this hunk applies to.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<? extends FileHeader> |
Patch.getFiles()
Get list of files described in the patch, in occurrence order.
|
Modifier and Type | Method and Description |
---|---|
void |
Patch.addFile(FileHeader fh)
Add a single file to this patch.
|
private int |
Patch.parseGitBinary(FileHeader fh,
int c,
int end) |
private int |
Patch.parseHunks(FileHeader fh,
int c,
int end) |
Constructor and Description |
---|
BinaryHunk(FileHeader fh,
int offset) |
HunkHeader(FileHeader fh,
EditList editList) |
HunkHeader(FileHeader fh,
int offset) |
HunkHeader(FileHeader fh,
int offset,
HunkHeader.OldImage oi) |