Package com.google.gerrit.server.git
Class CodeReviewCommit
- java.lang.Object
-
- org.eclipse.jgit.lib.AnyObjectId
-
- org.eclipse.jgit.lib.ObjectId
-
- org.eclipse.jgit.lib.ObjectIdOwnerMap.Entry
-
- org.eclipse.jgit.revwalk.RevObject
-
- org.eclipse.jgit.revwalk.RevCommit
-
- com.google.gerrit.server.git.CodeReviewCommit
-
- All Implemented Interfaces:
Serializable
,Comparable<org.eclipse.jgit.lib.AnyObjectId>
public class CodeReviewCommit extends org.eclipse.jgit.revwalk.RevCommit
Extended commit entity with code review specific metadata.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CodeReviewCommit.CodeReviewRevWalk
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.collect.Ordering<CodeReviewCommit>
ORDER
Default ordering when merging multiple topologically-equivalent commits.
-
Constructor Summary
Constructors Constructor Description CodeReviewCommit(org.eclipse.jgit.lib.AnyObjectId id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Change
change()
void
copyFrom(CodeReviewCommit src)
ChangeNotes
getNotes()
PatchSet.Id
getPatchsetId()
CommitMergeStatus
getStatusCode()
static CodeReviewCommit.CodeReviewRevWalk
newRevWalk(org.eclipse.jgit.lib.ObjectReader reader)
static CodeReviewCommit.CodeReviewRevWalk
newRevWalk(org.eclipse.jgit.lib.Repository repo)
ChangeNotes
notes()
void
setNotes(ChangeNotes notes)
void
setPatchsetId(PatchSet.Id patchsetId)
void
setStatusCode(CommitMergeStatus statusCode)
-
Methods inherited from class org.eclipse.jgit.revwalk.RevCommit
carry, disposeBody, getAuthorIdent, getCommitterIdent, getCommitTime, getEncoding, getEncodingName, getFooterLines, getFooterLines, getFooterLines, getFullMessage, getParent, getParentCount, getParents, getRawBuffer, getShortMessage, getTree, getType, parse, parse, reset, toString
-
Methods inherited from class org.eclipse.jgit.revwalk.RevObject
add, add, appendCoreFlags, getId, has, hasAll, hasAny, remove, remove
-
Methods inherited from class org.eclipse.jgit.lib.ObjectId
equals, fromRaw, fromRaw, fromRaw, fromRaw, fromString, fromString, isId, toObjectId, toString, zeroId
-
-
-
-
Field Detail
-
ORDER
public static final com.google.common.collect.Ordering<CodeReviewCommit> ORDER
Default ordering when merging multiple topologically-equivalent commits.Operates only on these commits and does not take ancestry into account.
Use this in preference to the default order, which comes from
AnyObjectId
and only orders on SHA-1.
-
-
Method Detail
-
newRevWalk
public static CodeReviewCommit.CodeReviewRevWalk newRevWalk(org.eclipse.jgit.lib.Repository repo)
-
newRevWalk
public static CodeReviewCommit.CodeReviewRevWalk newRevWalk(org.eclipse.jgit.lib.ObjectReader reader)
-
notes
public ChangeNotes notes()
-
getStatusCode
public CommitMergeStatus getStatusCode()
-
setStatusCode
public void setStatusCode(CommitMergeStatus statusCode)
-
getPatchsetId
public PatchSet.Id getPatchsetId()
-
setPatchsetId
public void setPatchsetId(PatchSet.Id patchsetId)
-
copyFrom
public void copyFrom(CodeReviewCommit src)
-
change
public Change change()
-
getNotes
public ChangeNotes getNotes()
-
setNotes
public void setNotes(ChangeNotes notes)
-
-