java.lang.Object
org.eclipse.jgit.patch.HunkHeader.OldImage
- Enclosing class:
- HunkHeader
Details about an old image of the file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract AbbreviatedObjectId
getId()
Get id of the pre-image fileint
Get number of lines this hunk coversint
Get number of lines added by the post-imageint
Get number of lines deleted by the post-imageint
Get line number where hunk starts
-
Constructor Details
-
OldImage
public OldImage()
-
-
Method Details
-
getStartLine
public int getStartLine()Get line number where hunk starts- Returns:
- first line number the hunk starts on in this file.
-
getLineCount
public int getLineCount()Get number of lines this hunk covers- Returns:
- total number of lines this hunk covers in this file.
-
getLinesDeleted
public int getLinesDeleted()Get number of lines deleted by the post-image- Returns:
- number of lines deleted by the post-image from this file.
-
getLinesAdded
public int getLinesAdded()Get number of lines added by the post-image- Returns:
- number of lines added by the post-image not in this file.
-
getId
Get id of the pre-image file- Returns:
- object id of the pre-image file.
-