Class PendingGenerator

java.lang.Object
org.eclipse.jgit.revwalk.Generator
org.eclipse.jgit.revwalk.PendingGenerator

class PendingGenerator extends Generator
Default (and first pass) RevCommit Generator implementation for RevWalk.

This generator starts from a set of one or more commits and process them in descending (newest to oldest) commit time order. Commits automatically cause their parents to be enqueued for further processing, allowing the entire commit graph to be walked. A RevFilter may be used to select a subset of the commits and return them to the caller.

  • Field Details

    • PARSED

      private static final int PARSED
      See Also:
    • SEEN

      private static final int SEEN
      See Also:
    • UNINTERESTING

      private static final int UNINTERESTING
      See Also:
    • OVER_SCAN

      static final int OVER_SCAN
      Number of additional commits to scan after we think we are done.

      This small buffer of commits is scanned to ensure we didn't miss anything as a result of clock skew when the commits were made. We need to set our constant to 1 additional commit due to the use of a pre-increment operator when accessing the value.

      See Also:
    • INIT_LAST

      private static final RevCommit INIT_LAST
      A commit near the end of time, to initialize last with.
    • walker

      private final RevWalk walker
    • pending

      private final DateRevQueue pending
    • filter

      private final RevFilter filter
    • output

      private final int output
    • last

      private RevCommit last
      Last commit produced to the caller from next().
    • overScan

      private int overScan
      Number of commits we have remaining in our over-scan allotment.

      Only relevant if there are UNINTERESTING commits in the pending queue.

    • canDispose

      boolean canDispose
  • Constructor Details

  • Method Details