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
    • Field Detail

      • depth

        int depth
        Depth of this commit in the graph, via shortest path.
      • isBoundary

        boolean isBoundary
      • makesChildBoundary

        boolean makesChildBoundary
        True if this commit was excluded due to a shallow fetch setting. All its children are thus boundary commits.
    • 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.
      • isBoundary

        public boolean isBoundary()
        Returns:
        true if at least one of this commit's parents was excluded due to a shallow fetch setting, false otherwise
        Since:
        5.2