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 Summary
Nested Classes -
Field Summary
FieldsModifier 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.RevCommit
buffer, parents, tree -
Constructor Summary
Constructors -
Method Summary
Modifier 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.RevCommit
carry, 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.RevObject
add, add, appendCoreFlags, getId, has, hasAll, hasAny, remove, removeMethods inherited from class org.eclipse.jgit.lib.ObjectId
equals, fromRaw, fromRaw, fromRaw, fromRaw, fromRaw, fromString, fromString, isId, toObjectId, toString, zeroIdMethods inherited from class org.eclipse.jgit.lib.AnyObjectId
abbreviate, 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
-
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.
-
-
Constructor Details
-
CodeReviewCommit
public CodeReviewCommit(org.eclipse.jgit.lib.AnyObjectId id)
-
-
Method Details
-
newRevWalk
-
newRevWalk
public static CodeReviewCommit.CodeReviewRevWalk newRevWalk(org.eclipse.jgit.lib.ObjectReader reader) -
notes
-
getStatusCode
-
setStatusCode
-
getStatusMessage
-
setStatusMessage
-
setNoConflicts
public void setNoConflicts() -
setConflicts
-
getConflicts
-
getFilesWithGitConflicts
-
getPatchsetId
-
setPatchsetId
-
copyFrom
-
change
-
getNotes
-
setNotes
-