Class DepthWalk.Commit

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<AnyObjectId>
    Enclosing interface:
    DepthWalk

    public static class DepthWalk.Commit
    extends RevCommit
    RevCommit with a depth (in commits) from a root.
    See Also:
    Serialized Form
    • Constructor Detail

      • Commit

        protected Commit​(AnyObjectId id)
        Initialize a new commit.
        Parameters:
        id - object name for the commit.
    • Method Detail

      • getDepth

        public int getDepth()
        Returns:
        depth of this commit, as found by the shortest path.