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.RevCommitExtended commit entity with code review specific metadata.- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classCodeReviewCommit.CodeReviewRevWalk
 - 
Field SummaryFields Modifier and Type Field Description static com.google.common.collect.Ordering<CodeReviewCommit>ORDERDefault ordering when merging multiple topologically-equivalent commits.
 - 
Constructor SummaryConstructors Constructor Description CodeReviewCommit(org.eclipse.jgit.lib.AnyObjectId id)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Changechange()voidcopyFrom(CodeReviewCommit src)com.google.common.collect.ImmutableSet<String>getFilesWithGitConflicts()ChangeNotesgetNotes()PatchSet.IdgetPatchsetId()CommitMergeStatusgetStatusCode()Optional<String>getStatusMessage()static CodeReviewCommit.CodeReviewRevWalknewRevWalk(org.eclipse.jgit.lib.ObjectReader reader)static CodeReviewCommit.CodeReviewRevWalknewRevWalk(org.eclipse.jgit.lib.Repository repo)ChangeNotesnotes()voidsetFilesWithGitConflicts(Set<String> filesWithGitConflicts)voidsetNotes(ChangeNotes notes)voidsetPatchsetId(PatchSet.Id patchsetId)voidsetStatusCode(CommitMergeStatus statusCode)voidsetStatusMessage(String statusMessage)- 
Methods inherited from class org.eclipse.jgit.revwalk.RevCommitcarry, disposeBody, getAuthorIdent, getCommitterIdent, getCommitTime, getEncoding, getEncodingName, getFooterLines, getFooterLines, getFooterLines, getFullMessage, getParent, getParentCount, getParents, getRawBuffer, getRawGpgSignature, getShortMessage, getTree, getType, parse, parse, reset, toString
 - 
Methods inherited from class org.eclipse.jgit.revwalk.RevObjectadd, add, appendCoreFlags, getId, has, hasAll, hasAny, remove, remove
 - 
Methods inherited from class org.eclipse.jgit.lib.ObjectIdequals, fromRaw, fromRaw, fromRaw, fromRaw, fromString, fromString, isId, toObjectId, toString, zeroId
 
- 
 
- 
- 
- 
Field Detail- 
ORDERpublic 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 AnyObjectIdand only orders on SHA-1.
 
- 
 - 
Method Detail- 
newRevWalkpublic static CodeReviewCommit.CodeReviewRevWalk newRevWalk(org.eclipse.jgit.lib.Repository repo) 
 - 
newRevWalkpublic static CodeReviewCommit.CodeReviewRevWalk newRevWalk(org.eclipse.jgit.lib.ObjectReader reader) 
 - 
notespublic ChangeNotes notes() 
 - 
getStatusCodepublic CommitMergeStatus getStatusCode() 
 - 
setStatusCodepublic void setStatusCode(CommitMergeStatus statusCode) 
 - 
setStatusMessagepublic void setStatusMessage(String statusMessage) 
 - 
getFilesWithGitConflictspublic com.google.common.collect.ImmutableSet<String> getFilesWithGitConflicts() 
 - 
getPatchsetIdpublic PatchSet.Id getPatchsetId() 
 - 
setPatchsetIdpublic void setPatchsetId(PatchSet.Id patchsetId) 
 - 
copyFrompublic void copyFrom(CodeReviewCommit src) 
 - 
changepublic Change change() 
 - 
getNotespublic ChangeNotes getNotes() 
 - 
setNotespublic void setNotes(ChangeNotes notes) 
 
- 
 
-