mirror of
https://github.com/therootcompany/golib.git
synced 2026-11-04 06:55:00 +00:00
- Default depth changed from 1 to 3: enough overlap for delta compression even if the remote pushes 2 commits between fetches - Keep --depth on fetch (not just clone) so shallow stays windowed - GCInterval default changed: 0 now means every fetch (was disabled) - GC sequence: reflog expire → prune → gc --prune=now Expire makes old shallow entries' objects unreachable, prune removes them cheaply (5MB RSS), then gc delta-compresses what remains (~10MB) - Only GC when HEAD actually changed (skip no-op fetches) - Dropped GCAggressive (no benefit in shallow clones)