Package com.google.gerrit.server.notedb
Class ChangeNotesCommit
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.notedb.ChangeNotesCommit
- All Implemented Interfaces:
Serializable
,Comparable<org.eclipse.jgit.lib.AnyObjectId>
public class ChangeNotesCommit
extends org.eclipse.jgit.revwalk.RevCommit
Commit implementation with some optimizations for change notes parsing.
- Caches the result of
RevCommit.getFooterLines()
, which is otherwise very wasteful with allocations.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields inherited from class org.eclipse.jgit.revwalk.RevCommit
buffer, parents, tree
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFooterLineValues
(org.eclipse.jgit.revwalk.FooterKey key) boolean
isAttentionSetCommitOnly
(boolean hasChangeMessage) newRevWalk
(org.eclipse.jgit.lib.Repository repo) ARevWalk
producingChangeNotesCommit
s.newStagedRevWalk
(org.eclipse.jgit.lib.Repository repo, Iterable<InsertedObject> stagedObjs) 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
-
Constructor Details
-
ChangeNotesCommit
public ChangeNotesCommit(org.eclipse.jgit.lib.AnyObjectId id)
-
-
Method Details
-
newRevWalk
ARevWalk
producingChangeNotesCommit
s. -
newStagedRevWalk
public static ChangeNotesCommit.ChangeNotesRevWalk newStagedRevWalk(org.eclipse.jgit.lib.Repository repo, Iterable<InsertedObject> stagedObjs) -
isAttentionSetCommitOnly
public boolean isAttentionSetCommitOnly(boolean hasChangeMessage)
-