Class DepthWalk.Commit

All Implemented Interfaces:
Serializable, Comparable<AnyObjectId>
Enclosing interface:
DepthWalk

public static class DepthWalk.Commit extends RevCommit
RevCommit with a depth (in commits) from a root.
See Also:
  • Field Details

    • 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 Details

    • Commit

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

    • 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