Class DepthGenerator


  • class DepthGenerator
    extends Generator
    Only produce commits which are below a specified depth.
    See Also:
    DepthWalk
    • Field Detail

      • depth

        private final int depth
      • deepenSince

        private final int deepenSince
      • UNSHALLOW

        private final RevFlag UNSHALLOW
        Commits which used to be shallow in the client, but which are being extended as part of this fetch. These commits should be returned to the caller as UNINTERESTING so that their blobs/trees can be marked appropriately in the pack writer.
      • REINTERESTING

        private final RevFlag REINTERESTING
        Commits which the normal framework has marked as UNINTERESTING, but which we now care about again. This happens if a client is extending a shallow checkout to become deeper--the new commits at the bottom of the graph need to be sent, even though they are below other commits which the client already has.
      • DEEPEN_NOT

        private final RevFlag DEEPEN_NOT
        Commits reachable from commits that the client specified using --shallow-exclude.