mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
libgit2's revwalk ignores the pack bitmap and commit-graph, so counting walks every commit. Shell out to `git rev-list --count --use-bitmap-index`, which uses those indexes, and fall back to the revwalk if git is missing, too old, or errors, so the result is unchanged, just faster on maintained storage.