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)
com.google.common.collect.ImmutableSet<String>
getFilesWithGitConflicts()
ChangeNotes
getNotes()
PatchSet.Id
getPatchsetId()
CommitMergeStatus
getStatusCode()
Optional<String>
getStatusMessage()
static CodeReviewCommit.CodeReviewRevWalk
newRevWalk(org.eclipse.jgit.lib.ObjectReader reader)
static CodeReviewCommit.CodeReviewRevWalk
newRevWalk(org.eclipse.jgit.lib.Repository repo)
ChangeNotes
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, 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
-
-
-
-
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)
-
setStatusMessage
public void setStatusMessage(String statusMessage)
-
getFilesWithGitConflicts
public com.google.common.collect.ImmutableSet<String> getFilesWithGitConflicts()
-
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)
-
-