mirror of
https://seed.radicle.dev/rad:z4D5UCArafTzTQpDZNQRuqswh3ury.git
synced 2026-11-28 22:30:27 +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.