grit://cooking/dogfood← what’s cooking
Monday, November 2, 2026 · macOS 15.7 (24G214)

Dogfood on scott-mbp: Automation and CI scripter

4 repos · 35 commands · 3 broken · 6 slow · 3 filed

Scripter/CI dogfood on macOS (APFS, case-insensitive): re-verified the six 'fixed' issues, then swept machine output, exit codes, env/config overrides, subdirectories, hooks, signals, concurrent commits, a CI-style shallow-clone/tag/diff/commit/push flow, macOS filesystem semantics (case, unicode, symlinks, fifos) and many-ref scaling. Overall grit is solid and mostly faster than git on big repos, but 2 of the 6 fixes are not really fixed (#2469 clone still ignores signals on a stalled server, #2409 still 1.36 GB RSS) and I filed 3 new issues: a macOS case-rename switch failure (#2499), unbuffered human `diff` output (#2501) and per-loose-ref cost in branch/tag/log --json (#2502).

os
macOS 15.7 (24G214) · arm64
machine
scott-mbp (agador.sparticus), Apple M3, 24 GB RAM, APFS case-insensitive
versions
grit 0.5.0 on PATH (~/.local/bin/grit; not used for comparisons) · main a46e45ab · 2.52.0
repositories4
repofilescommits.gitnotes
octocat/Hello-World131 MB
rust-lang/cargo (grit clone, full)3,07823,60787 MBalso used as bare mirror and as depth-1 clones
git/git (grit clone, full)4,86382,668324 MBbare mirror used for big-diff and ref tests
scratch repos———small purpose-built repos (sw, ex, cf, ci, pu, fsx, uni, rt, loop) for exit codes, hooks, conflicts, unicode/symlink/fifo, 20k loose tags
commandsgrit vs. system git, wall time
commandrepogritgitgrit/gitresultnotes
grit diff --json home-0.5.9 HEADrust-lang/cargo (grit clone, full)633 ms——ok471 renames = git
grit diff <20000th commit> HEAD (human, to file)git/git (grit clone, full)2.52 s891 ms2.8×ok2.8x git, 1.15M tiny writes; filed #2501
grit diff --json (49 MB diff)git/git (grit clone, full)770 ms930 ms0.8×ok
grit diff --json --filter .changed (49 MB diff)git/git (grit clone, full)1.07 s930 ms1.2×memory7.7x git RSS; #2409 reopened
grit diff --markdown (49 MB diff)git/git (grit clone, full)560 ms930 ms0.6×ok
grit diff --statgit/git (grit clone, full)390 ms680 ms0.6×ok
grit clone file:// (full)rust-lang/cargo (grit clone, full)1.23 s2.61 s0.5×ok
grit clone file:// (full)git/git (grit clone, full)10.39 s11.66 s0.9×ok
grit clone --depth 1 file://rust-lang/cargo (grit clone, full)420 ms440 ms1.0×ok
grit fetch --tags --depth 1 origin (shallow)rust-lang/cargo (grit clone, full)1.43 s——ok
grit switch --detach home-0.5.9 (after shallow fetch)rust-lang/cargo (grit clone, full)60 ms——errorcase-only rename guard, #2499; git succeeds
grit status --jsonrust-lang/cargo (grit clone, full)29 ms41 ms0.7×ok
grit add .rust-lang/cargo (grit clone, full)33 ms36 ms0.9×ok
grit log -n 100 --jsonrust-lang/cargo (grit clone, full)4.6 ms4.1 ms1.1×ok
grit diff --json HEAD~100rust-lang/cargo (grit clone, full)5.5 ms50 ms0.1×ok
grit describerust-lang/cargo (grit clone, full)158 ms68 ms2.3×ok2.3x; known #2462/#2467 class
grit revs HEAD~1000..HEADrust-lang/cargo (grit clone, full)62 ms23 ms2.7×ok2.7x; known #2109
grit log --json -n 50 -- pathrust-lang/cargo (grit clone, full)16 ms12 ms1.4×ok
grit blame <path>rust-lang/cargo (grit clone, full)3.9 ms4.2 ms0.9×ok
grit fsckrust-lang/cargo (grit clone, full)1.06 s4.16 s0.3×ok
grit merge-base HEAD HEAD~5000rust-lang/cargo (grit clone, full)71 ms88 ms0.8×ok
grit resolve HEADscratch repos3.4 ms2.9 ms1.2×ok
grit status --jsonscratch repos5.4 ms3.3 ms1.6×oksys time 2.8 ms vs 1.1 ms in a 6-file repo; minor
grit --versionscratch repos2.5 ms2.7 ms0.9×ok
1000x grit tag tN loopscratch repos14.78 s3.62 s4.1×slow4.1x, grows with loose tag count; #2502
grit branch zz (20k loose tags)scratch repos577 ms4.1 ms141×slow#2502
grit tag zz (20k loose tags)scratch repos564 ms3.8 ms148×slow#2502
grit log -n 1 --json (20k loose tags)scratch repos398 ms3.4 ms117×slow#2502
grit switch -c zz (20k loose tags)scratch repos81 ms3.0 ms27×slow#2502
300x (create file, grit commit) loopscratch repos4.05 s4.29 s0.9×oktotal for 300 iterations, ~13.5 ms each for both
grit clone http://stalled (SIGTERM)scratch repos———errorfirst signal ignored; #2469 reopened
grit fetch/pull http://stalled (SIGTERM)scratch repos15 ms——okexit 130 'operation cancelled'
grit push (shallow -> empty remote, shallowUpdate=true)scratch repos———ok
grit merge/rebase/pick/revert/stash conflict flows with --jsonscratch repos———ok
grit switch b (case-only rename, 33+ paths changed)scratch repos———error#2499; merge and pick fail too, reset --hard ok
worked8
  • ›Every --json output parsed (jq/python) across ~25 commands; --markdown present everywhere; --filter errors are JSON with kind
  • ›Nothing ever opened an editor or prompted: commit/tag -a/notes/merge/revert without -m fail fast with clear messages, hooks capture stdout/stderr in hook_failed JSON
  • ›Env and -c/-C overrides, GIT_DIR/GIT_WORK_TREE, author/committer dates and timezones match git exactly; works from subdirectories
  • ›Conflict model is uniform: merge/rebase/pick/revert stop with state, --continue/--skip/--abort, merge --check predicts conflicts, JSON lists conflicts and next_steps
  • ›Clone/fetch/push interoperate with git (fsck clean) incl. shallow, tags, force-with-lease, receive.shallowUpdate; clone of cargo 2x faster than git, fsck 4x faster
  • ›macOS semantics: case-collision warning on clone, NFC storage like git, fifo ignored, nested repo gitlink, unreadable file gives typed worktree_path_io error
  • ›20 parallel commits: no lost commit or corruption, losers get a clear index.lock holder message
  • ›SIGTERM during pre-commit hook and during fetch/pull exits 130 promptly with no stale locks; file:// clone cancel removes the partial directory
problems12
  • ›#2499 filed: switch/merge/pick fail on case-only rename once 32+ paths change (macOS)
  • ›#2501 filed: human `grit diff` issues ~1.15M tiny writes for a 49 MB diff (2.8x git to a file)
  • ›#2502 filed: per-loose-ref cost in branch/tag/switch -c/log --json/tag -d (20k loose tags: 570 ms vs 4 ms)
  • ›#2469 not fixed for clone (reopened via verify_fix); #2409 memory not fixed (reopened)
  • ›Not filed: hook grandchild process (sleep) is orphaned after SIGTERM cancels a commit hook - same as git
  • ›Not filed (minor UX): identity-unknown error prints the 'tell grit who you are' hint twice in human and markdown output
  • ›Not filed (minor): some JSON errors lack `kind` (push 'src refspec ... does not match any ref', config list); conflict and generic error share exit code 1 (JSON disambiguates)
  • ›Not filed (minor): after `grit clone` of an empty remote, `grit branch` shows '* main [gone]'
  • ›Not filed (minor): `status --json` in a 6-file repo spends 2.8 ms sys vs git 1.1 ms (5.4 vs 3.3 ms total)
  • ›Not filed: rename pairing of identical-content sources differs from git in 2 of 471 renames on cargo (equal score tie-break); stat totals identical
  • ›Not filed: clone only warns about case collisions (Foo/foo), not about NFC/NFD name collisions
  • ›#2464 could not be re-verified on macOS (APFS rejects non-UTF-8 names)
bugs filed3
#2499 #2501 #2502already reported: #2109 #2462 #2467 #2303 #2481
next time
  • ›Retest #2464 (non-UTF-8 names) on Linux; on macOS test names that APFS normalises (NFD) through switch/merge/rebase/stash round-trips with git
  • ›After #2499 lands, fuzz case-only renames and case-colliding trees through switch/merge/pick/rebase/stash/restore with varying change-set sizes (threshold was 32 paths) and with sparse checkout
  • ›After #2502 lands, test fetch --tags and clone into repos that accumulate loose refs (loose vs packed vs reftable) for branch/tag/switch/log/describe, plus 1000x tag/branch loops
  • ›Check whether `grit fetch` writes loose refs for thousands of tags and whether gc/auto pack-refs ever runs
  • ›Add Cancel/signal coverage for ls-remote-like paths, bundle-uri, pull and push to a stalled or dripping server (drip mode of the stall server), after the #2469 clone fix
  • ›Measure all human renderers (show, blame, log --stat, status on huge dirty trees) for write granularity with the pipe-read histogram trick
  • ›Run the CI flow over real smart HTTP/ssh servers (shallow push, --blobs none, credential helpers); only file:// and local bare remotes were used here