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()
void
copyFrom
(CodeReviewCommit src) com.google.common.collect.ImmutableSet<String>
getNotes()
newRevWalk
(org.eclipse.jgit.lib.ObjectReader reader) newRevWalk
(org.eclipse.jgit.lib.Repository repo) notes()
void
setFilesWithGitConflicts
(Set<String> filesWithGitConflicts) void
setNotes
(ChangeNotes notes) void
setPatchsetId
(PatchSet.Id patchsetId) void
setStatusCode
(CommitMergeStatus statusCode) void
setStatusMessage
(String statusMessage) Methods inherited from class org.eclipse.jgit.revwalk.RevCommit
carry, disposeBody, getAuthorIdent, getChangedPathFilter, 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.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
Methods 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, 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
AnyObjectId
and 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
-
getFilesWithGitConflicts
-
setFilesWithGitConflicts
-
getPatchsetId
-
setPatchsetId
-
copyFrom
-
change
-
getNotes
-
setNotes
-