java.lang.Object
org.eclipse.jgit.patch.HunkHeader
org.eclipse.jgit.patch.CombinedHunkHeader
Hunk header for a hunk appearing in a "diff --cc" style patch.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jgit.patch.HunkHeader
HunkHeader.OldImage
-
Method Summary
Modifier and TypeMethodDescriptionGet header for the file this hunk applies to.Get information about the old image mentioned in this hunk.getOldImage
(int nthParent) Get the OldImage data related to the nth ancestorMethods inherited from class org.eclipse.jgit.patch.HunkHeader
getBuffer, getEndOffset, getLinesContext, getNewLineCount, getNewStartLine, getStartOffset, toEditList, toString
-
Method Details
-
getFileHeader
Description copied from class:HunkHeader
Get header for the file this hunk applies to.- Overrides:
getFileHeader
in classHunkHeader
- Returns:
- header for the file this hunk applies to.
-
getOldImage
Description copied from class:HunkHeader
Get information about the old image mentioned in this hunk.- Overrides:
getOldImage
in classHunkHeader
- Returns:
- information about the old image mentioned in this hunk.
-
getOldImage
Get the OldImage data related to the nth ancestor- Parameters:
nthParent
- the ancestor to get the old image data of- Returns:
- image data of the requested ancestor.
-