5 repos · 32 commands · 7 broken · 2 slow · 5 filed
Ran every grit CLI command (about 45, including the grithub serve/checkout/checkin/integrate flow) in human, --json and --markdown on scratch repos, Hello-World, rust-lang/cargo (23.6k commits) and git/git (82.7k commits) on Windows. JSON is valid and complete at scale (all outputs parsed, paging order matches git rev-list, unicode/latin-1/control-char data stays valid JSON), and human/JSON/markdown agree on facts. The problems are in the margins of the contract: inconsistent log totals, unescaped markdown code spans, missing error kinds, --filter result shape, Windows path spellings, and an unbounded log cursor store that I could not file because the 5-report cap was already used.
| repo | files | commits | .git | notes |
|---|---|---|---|---|
| octocat/Hello-World | 1 | 3 | 0 MB | 3 remote branches; clone 0.8 s |
| rust-lang/cargo | 3,078 | 23,633 | 218.7 MB | cloned with grit in 22.1 s (78 MB received); 138 MB of the .git size is .git/grit/log-walk cursor files from my paging test, pack is 79.6 MB |
| git/git | 4,864 | 82,712 | 323.8 MB | cloned with grit in 83.3 s (325 MB received) |
| scratch/repo1 (merge, tags, notes, renames, unicode names) | 5 | 9 | 0.01 MB | used for per-command human/json/markdown comparison, plus conf-repo (conflicts), st (all status states), enc (latin-1/ctrl chars), uni (emoji/CJK names), mdinj, edge, empty-repo, bare remote + two clones for fetch/pull/push/rebase |
| scratch/srvroot (grit serve, bob read then write) | 5 | 9 | 0.01 MB | grit serve on 127.0.0.1:18777; clone, checkout, slice, checkin, integrate over HTTP |
| command | repo | grit | git | grit/git | result | notes |
|---|---|---|---|---|---|---|
| grit status (+--json/--markdown) | scratch/repo1 (all states) | — | — | — | ok | matches git status --porcelain for MM, staged/unstaged deletes, rename+modify, intent-to-add, collapsed untracked dirs. Markdown drops the old path of renames that human/JSON show (not filed) |
| grit log / log -n / --stat / -p / --name-only / --name-status / --numstat / --group-by author / --graph (json, markdown) | scratch/repo1 | — | — | — | wrong | filed #2539: totals 0/0 with -p/--name-status/--name-only, merge files[] differs by mode; --graph with --json is a clear incompatible_flags error |
| grit log --json (paged via next cursor, 600 pages) | rust-lang/cargo | — | — | — | wrong | 12,000 unique commits in git rev-list order, but every page writes a growing file in .git/grit/log-walk: 604 files, 137.9 MB, never cleaned by gc/fsck. NOT FILED (report cap reached); details under problems |
| grit log -n 1000 (human) | rust-lang/cargo | 75 ms | 61 ms | 1.2× | ok | |
| grit log -n 1000 --json | rust-lang/cargo | 46 ms | — | — | ok | 937 KB, valid JSON |
| grit log -n 1000 --markdown | rust-lang/cargo | 69 ms | — | — | ok | |
| grit status | rust-lang/cargo | 156 ms | 277 ms | 0.6× | ok | |
| grit revs HEAD --count | rust-lang/cargo | 529 ms | 183 ms | 2.9× | slow | git rev-list --count HEAD; 2.9x, +346 ms; no commit-graph on a grit-made clone. Related to open #2462/#2467 (describe/count walks on git/git) |
| grit describe --json | rust-lang/cargo | 532 ms | 93 ms | 5.7× | slow | 5.7x, +439 ms, same answer 0.95.0-2058-g9511315a7. Duplicate of open #2462 / #2467 (same one-walk-per-tag cost, here on cargo) |
| grit revs HEAD --json | rust-lang/cargo | 689 ms | 249 ms | 2.8× | ok | 19 MB JSON for 23,633 commits vs 969 KB of oids from git rev-list; order identical to git |
| grit fsck --json | rust-lang/cargo | 3.21 s | 6.01 s | 0.5× | ok | faster than git; ~200 MB RSS (git figure not comparable) |
| grit blame src/workspace/workspace.rs --json | rust-lang/cargo | 280 ms | 219 ms | 1.3× | ok | |
| grit log --group-by author | rust-lang/cargo | 154 ms | 203 ms | 0.8× | ok | git shortlog -sne HEAD |
| grit diff HEAD~500 HEAD --json | rust-lang/cargo | 253 ms | — | — | ok | 9.7 MB, valid JSON |
| grit clone --json | rust-lang/cargo | 22.09 s | — | — | ok | JSON has phases; credentials are stripped from url |
| grit clone --json | git/git | 83.31 s | — | — | ok | 423,309 objects, 325 MB |
| grit clone (human/json/markdown) | octocat/Hello-World | 839 ms | — | — | ok | |
| grit status | git/git | 110 ms | 93 ms | 1.2× | ok | |
| grit blame builtin/log.c | git/git | 743 ms | 616 ms | 1.2× | ok | git.exe measured from mingw64\bin to avoid the cmd wrapper |
| grit log --all -n 20000 --json | git/git | 724 ms | 278 ms | 2.6× | ok | 23.5 MB JSON vs 2 MB git text; fine |
| grit diff HEAD~200 HEAD --json | git/git | 154 ms | 289 ms | 0.5× | ok | |
| grit tag --json | git/git | 39 ms | 30 ms | 1.3× | ok | 1,012 tags |
| grit show / blame / diff / cat / resolve (json, markdown) | scratch/repo1 | — | — | — | wrong | unescaped backtick in markdown code spans for names/specs: filed #2540. Binary blobs base64 in JSON, binary diffs summarized; latin-1 content flagged encoding_lossy; ctrl chars valid JSON |
| grit diff/stash --json outside a repo | scratch/notrepo | — | — | — | wrong | missing kind not_a_repository: filed #2541 |
| grit log --json --filter '.commits[].oid' | scratch/repo1 | — | — | — | wrong | shape depends on result count: filed #2542 |
| grit worktree add / list, branch, config --json on Windows | scratch/repo1 | — | — | — | wrong | mixed / and \ path spellings: filed #2543 |
| grit commit / add / restore / rm / mv / clean / stash / reset / tag / branch / switch / notes / bundle / repack / gc / reflog expire / hooks / ignore check / patch-id / config (json, markdown) | scratch/repo1 | — | — | — | ok | each mutating command run in a fresh copy per mode; outcomes agree across modes; patch-id equals git patch-id --stable; --dry-run available on the ones that matter |
| grit merge / pick / revert / rebase / history reword,squash,drop (+ --check, --continue, --abort, --skip) | scratch/conf-repo | — | — | — | ok | conflict outcome consistent in all modes with next_steps/alternatives; merge --check JSON `oid` is the merged tree (human says tree), pick --skip prints 'Dropped 1 empty commit(s)' for a conflicted commit (not filed, minor) |
| grit fetch / pull / pull --ff-only / push -u / push --dry-run / merge --check / shortlog --behind | scratch/wc (local bare remote) | — | — | — | ok | pull --ff-only exits 128 as documented |
| grit serve --setup/users/add-user/token/grant, serve, clone over HTTP, checkout, slice list/new, checkin, integrate | scratch/srvroot | — | — | — | ok | read-only user gets HTTP 403 from checkin classified remote_unreadable (exit 128), less clear than slice new's 'read-only access' message (not filed) |
| grit bundle create/verify/list, worktree list/add, notes add/list/show, reflog, fsck, hooks, gc --dry-run | scratch/repo1 | — | — | — | ok | |
| grit init (human/json/markdown) on an existing repo | scratch/repo1 | — | — | — | wrong | --markdown says 'Initialized empty repository' where human says 'Reinitialized existing repository' and JSON has reinitialized:true (not filed, minor) |