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>
Extended commit entity with code review specific metadata.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.google.common.collect.Ordering<CodeReviewCommit> Default ordering when merging multiple topologically-equivalent commits.Fields inherited from class org.eclipse.jgit.revwalk.RevCommitbuffer, parents, tree
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionchange()voidcopyFrom(CodeReviewCommit src) com.google.common.collect.ImmutableSet<String> getNotes()newRevWalk(org.eclipse.jgit.lib.ObjectReader reader) newRevWalk(org.eclipse.jgit.lib.Repository repo) notes()voidsetConflicts(org.eclipse.jgit.lib.ObjectId ours, org.eclipse.jgit.lib.ObjectId theirs, Set<String> filesWithGitConflicts) voidvoidsetNotes(ChangeNotes notes) voidsetPatchsetId(PatchSet.Id patchsetId) voidsetStatusCode(CommitMergeStatus statusCode) voidsetStatusMessage(String statusMessage) Methods inherited from class org.eclipse.jgit.revwalk.RevCommitcarry, disposeBody, getAuthorIdent, getChangedPathFilter, getCommitterIdent, getCommitTime, getEncoding, getEncodingName, getFirstMessageLine, getFooterLines, getFooterLines, getFooterLines, getFullMessage, getParent, getParentCount, getParents, getRawBuffer, getRawGpgSignature, getShortMessage, getTree, getType, parse, parse, reset, toStringMethods inherited from class org.eclipse.jgit.revwalk.RevObjectadd, add, appendCoreFlags, getId, has, hasAll, hasAny, remove, removeMethods inherited from class org.eclipse.jgit.lib.ObjectIdequals, fromRaw, fromRaw, fromRaw, fromRaw, fromRaw, fromString, fromString, isId, toObjectId, toString, zeroIdMethods inherited from class org.eclipse.jgit.lib.AnyObjectIdabbreviate, compareTo, compareTo, compareTo, copy, copyRawTo, copyRawTo, copyRawTo, copyRawTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, equals, equals, getByte, getFirstByte, getName, hashCode, isEqual, name, startsWith
- 
Field Details- 
ORDERDefault 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.
 
- 
- 
Constructor Details- 
CodeReviewCommitpublic CodeReviewCommit(org.eclipse.jgit.lib.AnyObjectId id) 
 
- 
- 
Method Details- 
newRevWalk
- 
newRevWalkpublic static CodeReviewCommit.CodeReviewRevWalk newRevWalk(org.eclipse.jgit.lib.ObjectReader reader) 
- 
notes
- 
getStatusCode
- 
setStatusCode
- 
getStatusMessage
- 
setStatusMessage
- 
setNoConflictspublic void setNoConflicts()
- 
setConflicts
- 
getConflicts
- 
getFilesWithGitConflicts
- 
getPatchsetId
- 
setPatchsetId
- 
copyFrom
- 
change
- 
getNotes
- 
setNotes
 
-