Package org.eclipse.jgit.patch
Class CombinedHunkHeader
- java.lang.Object
-
- org.eclipse.jgit.patch.HunkHeader
-
- org.eclipse.jgit.patch.CombinedHunkHeader
-
public class CombinedHunkHeader extends HunkHeader
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CombinedFileHeadergetFileHeader()Get header for the file this hunk applies to.HunkHeader.OldImagegetOldImage()Get information about the old image mentioned in this hunk.HunkHeader.OldImagegetOldImage(int nthParent)Get the OldImage data related to the nth ancestor-
Methods inherited from class org.eclipse.jgit.patch.HunkHeader
getBuffer, getEndOffset, getLinesContext, getNewLineCount, getNewStartLine, getStartOffset, toEditList, toString
-
-
-
-
Method Detail
-
getFileHeader
public CombinedFileHeader getFileHeader()
Get header for the file this hunk applies to.- Overrides:
getFileHeaderin classHunkHeader- Returns:
- header for the file this hunk applies to.
-
getOldImage
public HunkHeader.OldImage getOldImage()
Get information about the old image mentioned in this hunk.- Overrides:
getOldImagein classHunkHeader- Returns:
- information about the old image mentioned in this hunk.
-
getOldImage
public HunkHeader.OldImage getOldImage(int nthParent)
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.
-
-