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 Classes
    Modifier and Type
    Class
    Description
    static class 
    A RevWalk that creates ChangeNotesCommits rather than RevCommits
  • Field Summary

    Fields inherited from class org.eclipse.jgit.revwalk.RevCommit

    buffer, parents, tree
  • Constructor Summary

    Constructors
    Constructor
    Description
    ChangeNotesCommit(org.eclipse.jgit.lib.AnyObjectId id)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getFooterLineValues(org.eclipse.jgit.revwalk.FooterKey key)
     
    boolean
    isAttentionSetCommitOnly(boolean hasChangeMessage)
     
    newRevWalk(org.eclipse.jgit.lib.Repository repo)
    A RevWalk producing ChangeNotesCommits.
    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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ChangeNotesCommit

      public ChangeNotesCommit(org.eclipse.jgit.lib.AnyObjectId id)
  • Method Details