const SCAN_CHILDREN: u32 = 10;Expand description
The children one scan issues for a repository with no remote and no local
default branch: rev-parse, the origin/HEAD probe plus its four
candidates (all missed), status, the worktree layer’s numstat and
name-status, and for-each-ref for the pushed sha. The PR lookup adds a
gh child only once a pushed sha exists, which such a repository has none
of.
That shape is the count. One whose default does resolve leaves the probe loop early and runs the ahead layer instead, so it needs a count of its own; this constant is not it.