gitproto: tighten SpooledBody encapsulation and trim docs

main

Commit

Soph4mo ago

Three small refinements:

  • Encapsulate SpooledBody's request wiring as (*SpooledBody).applyTo, so PostRPCStreamBody doesn't reach into unexported size/path fields to build req.ContentLength + req.GetBody.

  • Trim the multi-paragraph Cloudflare/idle-write narrative on PushObjects and PostRPCStreamBody. The story now lives once on SpooledBody (the type that actually captures the workaround); the other call sites point there.

  • Fix the countingWriter comment to say why the counter is atomic (concurrent read from the progress ticker) rather than restating what the type does.

Entire-Checkpoint: 0b0206eed178

Checkpoints

git-sync on  main [$!?] via 🐹 v1.26.2 on ☁️ (us-east-2) took 1m26s

Claude Code
View session
Checkpoint 1