Package com.google.gerrit.server.patch
Class PatchList
java.lang.Object
com.google.gerrit.server.patch.PatchList
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPatchList
(org.eclipse.jgit.lib.AnyObjectId oldId, org.eclipse.jgit.lib.AnyObjectId newId, boolean isMerge, ComparisonType comparisonType, PatchListEntry[] patches) -
Method Summary
Modifier and TypeMethodDescriptionFind an entry by name, returning an empty entry if not present.Returns the comparison typeint
Returns total number of lines removed.int
Returns total number of new lines added.org.eclipse.jgit.lib.ObjectId
getNewId()
New side commit.org.eclipse.jgit.lib.ObjectId
getOldId()
Old side tree or commit; null only if this is a combined diff.Get a sorted, unmodifiable list of all files in this list.
-
Constructor Details
-
PatchList
public PatchList(org.eclipse.jgit.lib.AnyObjectId oldId, org.eclipse.jgit.lib.AnyObjectId newId, boolean isMerge, ComparisonType comparisonType, PatchListEntry[] patches)
-
-
Method Details
-
getOldId
public org.eclipse.jgit.lib.ObjectId getOldId()Old side tree or commit; null only if this is a combined diff. -
getNewId
public org.eclipse.jgit.lib.ObjectId getNewId()New side commit. -
getPatches
Get a sorted, unmodifiable list of all files in this list. -
getComparisonType
Returns the comparison type -
getInsertions
public int getInsertions()Returns total number of new lines added. -
getDeletions
public int getDeletions()Returns total number of lines removed. -
get
Find an entry by name, returning an empty entry if not present.
-