public class HunkHeader extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HunkHeader.OldImage
Details about an old image of the file.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBuffer()
Get the byte array holding this hunk's patch script.
|
int |
getEndOffset()
Get offset one past the end of the hunk in
getBuffer() . |
FileHeader |
getFileHeader()
Get header for the file this hunk applies to.
|
int |
getLinesContext()
Get total number of lines of context appearing in this hunk.
|
int |
getNewLineCount()
Get total number of post-image lines this hunk covers.
|
int |
getNewStartLine()
Get first line number in the post-image file where the hunk starts.
|
HunkHeader.OldImage |
getOldImage()
Get information about the old image mentioned in this hunk.
|
int |
getStartOffset()
Get offset of the start of this hunk in
getBuffer() . |
EditList |
toEditList()
Convert to a list describing the content edits performed within the hunk.
|
String |
toString() |
public FileHeader getFileHeader()
public byte[] getBuffer()
public int getStartOffset()
getBuffer()
.getBuffer()
.public int getEndOffset()
getBuffer()
.getBuffer()
.public HunkHeader.OldImage getOldImage()
public int getNewStartLine()
public int getNewLineCount()
public int getLinesContext()
public EditList toEditList()
Copyright © 2019 Eclipse JGit Project. All rights reserved.