public class CodeReviewCommit
extends org.eclipse.jgit.revwalk.RevCommit
Modifier and Type | Class and Description |
---|---|
static class |
CodeReviewCommit.CodeReviewRevWalk |
Modifier and Type | Field and Description |
---|---|
static com.google.common.collect.Ordering<CodeReviewCommit> |
ORDER
Default ordering when merging multiple topologically-equivalent commits.
|
Constructor and Description |
---|
CodeReviewCommit(org.eclipse.jgit.lib.AnyObjectId id) |
Modifier and Type | Method and Description |
---|---|
Change |
change() |
void |
copyFrom(CodeReviewCommit src) |
ChangeControl |
getControl() |
PatchSet.Id |
getPatchsetId() |
CommitMergeStatus |
getStatusCode() |
static CodeReviewCommit.CodeReviewRevWalk |
newRevWalk(org.eclipse.jgit.lib.ObjectReader reader) |
static CodeReviewCommit.CodeReviewRevWalk |
newRevWalk(org.eclipse.jgit.lib.Repository repo) |
ChangeNotes |
notes() |
void |
setControl(ChangeControl control) |
void |
setPatchsetId(PatchSet.Id patchsetId) |
void |
setStatusCode(CommitMergeStatus statusCode) |
carry, disposeBody, getAuthorIdent, getCommitterIdent, getCommitTime, getEncoding, getEncodingName, getFooterLines, getFooterLines, getFooterLines, getFullMessage, getParent, getParentCount, getParents, getRawBuffer, getShortMessage, getTree, getType, parse, parse, reset, toString
add, add, appendCoreFlags, getId, has, hasAll, hasAny, remove, remove
equals, fromRaw, fromRaw, fromRaw, fromRaw, fromString, fromString, isId, toObjectId, toString, zeroId
public static final com.google.common.collect.Ordering<CodeReviewCommit> ORDER
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.
public static CodeReviewCommit.CodeReviewRevWalk newRevWalk(org.eclipse.jgit.lib.Repository repo)
public static CodeReviewCommit.CodeReviewRevWalk newRevWalk(org.eclipse.jgit.lib.ObjectReader reader)
public ChangeNotes notes()
public CommitMergeStatus getStatusCode()
public void setStatusCode(CommitMergeStatus statusCode)
public PatchSet.Id getPatchsetId()
public void setPatchsetId(PatchSet.Id patchsetId)
public void copyFrom(CodeReviewCommit src)
public Change change()
public ChangeControl getControl()
public void setControl(ChangeControl control)