5 repos · 25 commands · 3 broken · 2 slow · 5 filed
Dogfooded the Remotes scenario on scott-mbp: clone over https, file://, local path and grit serve (HTTP), push/fetch/pull (ff, divergent, conflict, force-with-lease, atomic, hooks, tags), multiple remotes and remote management, shallow/deepen/unshallow, partial clone, bare/single-branch clones, ls-remote and a 20k-ref repo. Core interop is solid (git fsck clean everywhere, repos round-trip with git, http/file transports comparable or faster than git), but current main does not compile (known #2528) and I filed 5 issues: remote refs hides non-heads/tags refs, no way to push all branches, pull+autostash on an unborn branch, 20k-ref clone slowness, and file:// --unshallow time/memory.
| repo | files | commits | .git | notes |
|---|---|---|---|---|
| octocat/Hello-World | 1 | 3 | 1 MB | |
| rust-lang/cargo | 3,078 | 23,624 | 87 MB | 218 refs after clone; 9961 refs advertised incl. 9635 refs/pull |
| git/git | 4,863 | 82,676 | 338 MB | |
| scratch/s1 (bare origin + clones) | 10 | 10 | 1 MB | local bare repos, two remotes, tags, feat branches |
| scratch/mr (20k branches) | 14 | 18 | 2 MB | bare repo with 20,003 branches, packed-refs |
| command | repo | grit | git | grit/git | result | notes |
|---|---|---|---|---|---|---|
| grit clone https://github.com/octocat/Hello-World | octocat/Hello-World | 927 ms | 700 ms | 1.3× | ok | network handshake dominated |
| grit clone https://github.com/rust-lang/cargo | rust-lang/cargo | 19.73 s | 33.15 s | 0.6× | ok | network bound |
| grit clone https://github.com/git/git | git/git | 132.47 s | 91.24 s | 1.5× | ok | network bound (grit 10 s user); maxrss includes mmap'd pack, footprint 75 MB; run again 142 s |
| grit clone file:///.../cargo-git | rust-lang/cargo | 2.20 s | 2.85 s | 0.8× | ok | 2x RSS, below filing threshold alone; faster than git |
| grit clone --depth 1 file:// (cargo) | rust-lang/cargo | 490 ms | 470 ms | 1.0× | ok | |
| grit fetch --depth 5 (shallow) | rust-lang/cargo | 20 ms | 40 ms | 0.5× | ok | |
| grit fetch --unshallow (file://) | rust-lang/cargo | 5.72 s | 4.61 s | 1.2× | memory | filed #2537 |
| grit fetch --unshallow (https) | rust-lang/cargo | 11.52 s | 16.91 s | 0.7× | ok | GitHub timing varies wildly between runs (git 17 s then 47 s) |
| grit clone (grit serve http) | rust-lang/cargo | 1.41 s | 3.77 s | 0.4× | ok | |
| grit clone --depth 1 (grit serve http) | rust-lang/cargo | 510 ms | 600 ms | 0.8× | ok | |
| grit fetch --deepen 10 (grit serve http) | rust-lang/cargo | 290 ms | 360 ms | 0.8× | ok | |
| grit fetch --unshallow (grit serve http) | rust-lang/cargo | 2.43 s | 5.90 s | 0.4× | ok | |
| grit clone --blobs none (file://) | rust-lang/cargo | 2.70 s | 2.14 s | 1.3× | ok | 31 MB .git, same as git; lazy show/diff fetch OK; warns when server has no filter support |
| grit clone /local/path | rust-lang/cargo | 230 ms | 330 ms | 0.7× | ok | |
| grit remote refs https://github.com/rust-lang/cargo | rust-lang/cargo | 605 ms | 678 ms | 0.9× | wrong | 326 lines vs git 9961; filed #2533 |
| grit remote refs <20k-branch repo> | scratch/mr (20k branches) | 11 ms | 31 ms | 0.4× | ok | |
| grit clone file:// (20k branches) | scratch/mr (20k branches) | 536 ms | 117 ms | 4.6× | slow | 4.6x; filed #2536 |
| grit fetch (no-op, 20k refs) | scratch/mr (20k branches) | 67 ms | 192 ms | 0.3× | ok | |
| grit push (1 branch to local bare, ff/non-ff/force/lease/atomic/delete/tags/follow-tags) | scratch/s1 (bare origin + clones) | — | — | — | ok | exit codes and remote state match git; --json ok |
| grit push nb 'refs/heads/*:refs/heads/*' | scratch/s1 (bare origin + clones) | — | — | — | error | glob refspec rejected, no --all/--mirror; filed #2534 |
| grit pull / pull --ff-only / conflict + rebase --continue | scratch/s1 (bare origin + clones) | — | — | — | ok | |
| grit pull --autostash o main (unborn branch) | scratch/s1 (bare origin + clones) | — | — | — | error | 'cannot stash without a commit'; filed #2535 |
| grit fetch / fetch --all / remote add|rename|set-url|show / --json / --markdown | scratch/s1 (bare origin + clones) | — | — | — | ok | |
| grit clone --bare / -b <tag> / --single-branch -b | scratch/s1 (bare origin + clones) | — | — | — | ok | bare clone also creates refs/remotes/origin/* (git does not); not filed, see problems |
| grit clone/push/pull over grit serve HTTP with token | scratch/s1 (bare origin + clones) | — | — | — | ok | interoperates with git client both ways |