| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | HunkHeader.
Details about an old image of the file. |
| Modifier and Type | Field and Description |
|---|---|
| private EditList | |
| pack-priv int | |
| pack-priv final FileHeader | |
| pack-priv int | nContext
Total number of lines of context appearing in this hunk |
| pack-priv int | newLineCount
Total number of post-image lines this hunk covers (context + inserted) |
| pack-priv int | newStartLine
First line number in the post-image file where the hunk starts |
| private final HunkHeader. | |
| pack-priv final int | startOffset
Offset within |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public byte[] | Returns: the byte array holding this hunk's patch script.Get the byte array holding this hunk's patch script. |
| public int | Returns: offset one past the end of the hunk ingetBuffer().Get offset one past the end of the hunk in |
| public FileHeader | Returns: header for the file this hunk applies to.Get header for the file this hunk applies to. |
| public int | Returns: total number of lines of context appearing in this hunk.Get total number of lines of context appearing in this hunk. |
| public int | Returns: total number of post-image lines this hunk covers.Get total number of post-image lines this hunk covers. |
| public int | Returns: first line number in the post-image file where the hunk starts.Get first line number in the post-image file where the hunk starts. |
| public HunkHeader. | Returns: information about the old image mentioned in this hunk.Get information about the old image mentioned in this hunk. |
| public int | Returns: offset of the start of this hunk ingetBuffer().Get offset of the start of this hunk in |
| pack-priv int | |
| pack-priv void | |
| pack-priv void | |
| public EditList | Returns: a list describing the content edits performed within the hunk.Convert to a list describing the content edits performed within the hunk. |
| public String |
| editList | back to summary |
|---|---|
| private EditList editList | |
| endOffset | back to summary |
|---|---|
| pack-priv int endOffset Position 1 past the end of this hunk within | |
| file | back to summary |
|---|---|
| pack-priv final FileHeader file | |
| nContext | back to summary |
|---|---|
| pack-priv int nContext Total number of lines of context appearing in this hunk | |
| newLineCount | back to summary |
|---|---|
| pack-priv int newLineCount Total number of post-image lines this hunk covers (context + inserted) | |
| newStartLine | back to summary |
|---|---|
| pack-priv int newStartLine First line number in the post-image file where the hunk starts | |
| old | back to summary |
|---|---|
| private final HunkHeader. | |
| startOffset | back to summary |
|---|---|
| pack-priv final int startOffset Offset within | |
| HunkHeader | back to summary |
|---|---|
| pack-priv HunkHeader(FileHeader fh, int offset) | |
| HunkHeader | back to summary |
|---|---|
| pack-priv HunkHeader(FileHeader fh, int offset, HunkHeader. | |
| HunkHeader | back to summary |
|---|---|
| pack-priv HunkHeader(FileHeader fh, EditList editList) | |
| copyLine | back to summary |
|---|---|
| pack-priv void copyLine(final StringBuilder sb, final String[] text, final int[] offsets, final int fileIdx) | |
| extractFileLines | back to summary |
|---|---|
| pack-priv void extractFileLines(OutputStream[] out) throws IOException | |
| extractFileLines | back to summary |
|---|---|
| pack-priv void extractFileLines(final StringBuilder sb, final String[] text, final int[] offsets) | |
| getBuffer | back to summary |
|---|---|
| public byte[] getBuffer() Get the byte array holding this hunk's patch script.
| |
| getEndOffset | back to summary |
|---|---|
| public int getEndOffset() Get offset one past the end of the hunk in
| |
| getFileHeader | back to summary |
|---|---|
| public FileHeader getFileHeader() Get header for the file this hunk applies to.
| |
| getLinesContext | back to summary |
|---|---|
| public int getLinesContext() Get total number of lines of context appearing in this hunk.
| |
| getNewLineCount | back to summary |
|---|---|
| public int getNewLineCount() Get total number of post-image lines this hunk covers.
| |
| getNewStartLine | back to summary |
|---|---|
| public int getNewStartLine() Get first line number in the post-image file where the hunk starts.
| |
| getOldImage | back to summary |
|---|---|
| public HunkHeader. Get information about the old image mentioned in this hunk.
| |
| getStartOffset | back to summary |
|---|---|
| public int getStartOffset() Get offset of the start of this hunk in
| |
| parseBody | back to summary |
|---|---|
| pack-priv int parseBody(Patch script, int end) | |
| parseHeader | back to summary |
|---|---|
| pack-priv void parseHeader() | |
| skipLine | back to summary |
|---|---|
| pack-priv void skipLine(final String[] text, final int[] offsets, final int fileIdx) | |
| toEditList | back to summary |
|---|---|
| public EditList toEditList() Convert to a list describing the content edits performed within the hunk.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | lineCount
Total number of lines this hunk covers in this file. |
| pack-priv int | nAdded
Number of lines added by the post-image not in this file. |
| pack-priv int | nDeleted
Number of lines deleted by the post-image from this file. |
| pack-priv int | startLine
First line number the hunk starts on in this file. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract AbbreviatedObjectId | |
| public int | Returns: total number of lines this hunk covers in this file.Get number of lines this hunk covers |
| public int | Returns: number of lines added by the post-image not in this file.Get number of lines added by the post-image |
| public int | Returns: number of lines deleted by the post-image from this file.Get number of lines deleted by the post-image |
| public int | Returns: first line number the hunk starts on in this file.Get line number where hunk starts |
| lineCount | back to summary |
|---|---|
| pack-priv int lineCount Total number of lines this hunk covers in this file. | |
| nAdded | back to summary |
|---|---|
| pack-priv int nAdded Number of lines added by the post-image not in this file. | |
| nDeleted | back to summary |
|---|---|
| pack-priv int nDeleted Number of lines deleted by the post-image from this file. | |
| startLine | back to summary |
|---|---|
| pack-priv int startLine First line number the hunk starts on in this file. | |
| OldImage | back to summary |
|---|---|
| public OldImage() | |
| getId | back to summary |
|---|---|
| public abstract AbbreviatedObjectId getId() Get id of the pre-image file
| |
| getLineCount | back to summary |
|---|---|
| public int getLineCount() Get number of lines this hunk covers
| |
| getLinesAdded | back to summary |
|---|---|
| public int getLinesAdded() Get number of lines added by the post-image
| |
| getLinesDeleted | back to summary |
|---|---|
| public int getLinesDeleted() Get number of lines deleted by the post-image
| |
| getStartLine | back to summary |
|---|---|
| public int getStartLine() Get line number where hunk starts
| |