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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChangeNotesCommit.ChangeNotesRevWalk
-
Constructor Summary
Constructors Constructor Description ChangeNotesCommit(org.eclipse.jgit.lib.AnyObjectId id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getFooterLineValues(org.eclipse.jgit.revwalk.FooterKey key)
static ChangeNotesCommit.ChangeNotesRevWalk
newRevWalk(org.eclipse.jgit.lib.Repository repo)
ARevWalk
producingChangeNotesCommit
s.static ChangeNotesCommit.ChangeNotesRevWalk
newStagedRevWalk(org.eclipse.jgit.lib.Repository repo, Iterable<InsertedObject> stagedObjs)
-
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
-
-
-
-
Method Detail
-
newRevWalk
public static ChangeNotesCommit.ChangeNotesRevWalk newRevWalk(org.eclipse.jgit.lib.Repository repo)
ARevWalk
producingChangeNotesCommit
s.
-
newStagedRevWalk
public static ChangeNotesCommit.ChangeNotesRevWalk newStagedRevWalk(org.eclipse.jgit.lib.Repository repo, Iterable<InsertedObject> stagedObjs)
-
-