7 repos · 35 commands · 7 broken · 3 slow · 5 filed
Git power user on macOS (APFS, case-insensitive): I ran grit main (0.5.28, b0818e712) over git-made advanced repos (split index, index v4/skipHash, reftable, sha256, cone sparse index, linked worktrees, submodules, shallow/partial clones, cruft packs, bundles, includeIf configs, CRLF/filter attributes, fsmonitor) and alternated git and grit through a day of work. On-disk interop is very solid: every fsck --strict stayed clean and no repository was corrupted. I filed 5 issues (#2520 shallow-clone show/log -p/blame failures, #2523 commit auto-stage ignoring status.showUntrackedFiles=no, #2524 submodule ignore config, #2521 assume-unchanged flag loss, #2522 case-only directory renames). Of the 6 fixes re-checked, 5 are fixed and #2472 is only partly fixed.
| repo | files | commits | .git | notes |
|---|---|---|---|---|
| rust-lang/cargo (bare) | 3,078 | 23,611 | 81 MB | also cargo-adv (split index + MIDX/bitmap + commit-graph), --shared and --no-hardlinks clones, shallow depth 1/5/20, blob:none |
| octocat/Hello-World | 1 | 3 | 1 MB | shallow repro |
| scratch/wide-120k | 120,000 | 1 | 21 MB | fast-import generated, plus a branch changing 8k files |
| scratch/reftable | 4 | 4 | 1 MB | git init --ref-format=reftable |
| scratch/sha256 | 4 | 4 | 1 MB | git init --object-format=sha256 |
| scratch/submodule-main | 3 | 4 | 1 MB | git submodule add |
| scratch/sparse-index (cargo) | 3,080 | 23,614 | 81 MB | cone sparse-checkout --sparse-index |
| command | repo | grit | git | grit/git | result | notes |
|---|---|---|---|---|---|---|
| grit status | rust-lang/cargo (bare) | 12 ms | 11 ms | 1.1× | ok | cargo-adv, split index |
| grit log -n 50 | rust-lang/cargo (bare) | 4.4 ms | 4.3 ms | 1.0× | ok | |
| grit revs HEAD --count | rust-lang/cargo (bare) | 7.8 ms | 6.5 ms | 1.2× | ok | with commit-graph |
| grit log --oneline -- Cargo.toml | rust-lang/cargo (bare) | 40 ms | 20 ms | 2.0× | ok | 2.0x |
| grit blame Cargo.toml | rust-lang/cargo (bare) | 38 ms | 27 ms | 1.4× | ok | 3 of 127 README.md lines attributed to a different commit than git (ambiguous blank-line diff), not filed |
| grit diff --stat HEAD~3000 HEAD | rust-lang/cargo (bare) | 64 ms | 122 ms | 0.5× | ok | |
| grit log --since=2024-01-01 -n 100000 --oneline | rust-lang/cargo (bare) | 106 ms | 48 ms | 2.2× | ok | output identical to git (7255 commits); also identical for --author, --grep, --merges, --first-parent, --skip, -S |
| grit log --author=alex --oneline -n 100000 | rust-lang/cargo (bare) | 158 ms | 131 ms | 1.2× | ok | |
| grit fsck | rust-lang/cargo (bare) | 1.00 s | 4.03 s | 0.2× | ok | |
| grit gc | rust-lang/cargo (bare) | 2.40 s | — | — | ok | 195k objects repack 825 ms + commit-graph 484 ms (bloom kept), git fsck clean |
| grit revs HEAD --count (shared clone) | rust-lang/cargo (bare) | 252 ms | 101 ms | 2.5× | ok | #2472 residual: unshared 156 ms |
| grit log --oneline -n 20000 (shared clone) | rust-lang/cargo (bare) | 342 ms | 110 ms | 3.1× | slow | 3.1x git, 2.0x unshared (#2472) |
| grit blame Cargo.toml (blob:none clone) | rust-lang/cargo (bare) | 41.00 s | 26.89 s | 1.5× | ok | 943 packs vs 43 for git; 1.5x slower, not filed |
| grit status (clean, first run) | scratch/wide-120k | 2.04 s | 2.02 s | 1.0× | ok | 2.2x memory |
| grit status (second run) | scratch/wide-120k | 258 ms | 201 ms | 1.3× | ok | |
| grit switch wide (8k files change) | scratch/wide-120k | 364 ms | 1.17 s | 0.3× | ok | |
| grit commit (1 file edited) | scratch/wide-120k | 462 ms | 217 ms | 2.1× | ok | 2.1x (cf. #1884) |
| grit stash (5k modified) | scratch/wide-120k | 1.25 s | 2.13 s | 0.6× | ok | |
| grit stash pop (5k) | scratch/wide-120k | 297 ms | 1.00 s | 0.3× | ok | |
| grit commit (5k modified) | scratch/wide-120k | 779 ms | 302 ms | 2.6× | memory | 2.6x slower, 2.9x memory; not filed (same area as #1884) |
| grit reset --hard HEAD~1 | scratch/wide-120k | 384 ms | 528 ms | 0.7× | ok | |
| grit gc | scratch/wide-120k | 682 ms | 637 ms | 1.1× | ok | |
| grit fsck | scratch/wide-120k | 445 ms | 215 ms | 2.1× | memory | 3.5x memory, 2.1x time; not filed (cap, borderline) |
| grit show HEAD (depth 1 clone) | octocat/Hello-World | — | — | — | error | #2520 |
| grit blame README (depth 1 clone) | octocat/Hello-World | — | — | — | error | #2520 |
| grit commit (status.showUntrackedFiles=no) | scratch/dotfiles | — | — | — | wrong | #2523 |
| grit status (diff.ignoreSubmodules=all) | scratch/submodule-main | — | — | — | wrong | #2524 |
| grit stash (dirty submodule only) | scratch/submodule-main | — | — | — | wrong | #2524 |
| grit reset --hard / merge / stash with assume-unchanged file | scratch/assume-unchanged | — | — | — | wrong | #2521 |
| grit switch lower (Foo/ -> foo/) | scratch/case-dir | — | — | — | wrong | #2522 |
| grit commit / branch / tag / switch / gc / worktree add on reftable | scratch/reftable | — | — | — | ok | git fsck --strict clean, git for-each-ref and reflog agree |
| grit commit / gc / stash / notes / clone / push on sha256 | scratch/sha256 | — | — | — | ok | |
| grit commit / switch / stash on cone sparse index | scratch/sparse-index (cargo) | — | — | — | ok | skip-worktree entries preserved (3044), fsck clean |
| grit bundle create/verify/list/clone | scratch/bundles | — | — | — | ok | both directions with git |
| grit gc after git gc --cruft | scratch/gc-cruft | — | — | — | ok | recent unreachable object kept as loose, fsck clean; repack with .keep pack re-packs the 15 objects already in the kept pack (duplicates), not filed |