Example usage for Java org.eclipse.jgit.patch FileHeader fields, constructors, methods, implement or subclass
The text is from its open source code.
FileHeader(byte[] headerLines, EditList edits, PatchType type) Constructs a new FileHeader |
byte[] | getBuffer() Get the byte array holding this file's patch script. |
ChangeType | getChangeType() Get the change type |
int | getEndOffset() Get offset one past the end of the file script. |
List extends HunkHeader> | getHunks() Get hunks altering this file; in order of appearance in patch |
FileMode | getNewMode() Get the new file mode |
String | getNewPath() Get the new name associated with this file. |
FileMode | getOldMode() Get the old file mode |
String | getOldPath() Get the old name associated with this file. |
PatchType | getPatchType() Get style of patch used to modify this file. |
String | getPath(Side side) Get the path associated with this file. |
int | getStartOffset() Get offset of the start of this file's script in #getBuffer() . |
EditList | toEditList() Convert to a list describing the content edits performed on this file. |