Skip to content

SYSTEM Cited by 3 sources

Git

Git is the dominant distributed version control system (origin: Linus Torvalds, 2005). Data model: a content-addressed object store (blobs / trees / commits / tags keyed by SHA-1/SHA-256) rooted in .git/objects/, plus refs (branches, tags) pointing at commit objects.

Runtime concerns that matter at scale in the wiki:

  • Storage layout. Loose objects first (one file per object), then repacked into pack files (.pack + .idx) for compact on-disk representation; pack files are where delta compression happens.
  • Transfer. git clone / git fetch / git push move pack files, not loose objects; a server typically rebuilds the transfer pack dynamically per request from what the client already has (the source of why local repack improvements don't survive a server-mediated round trip — see systems/github).
  • Repack. git repack -adf (-a all-in-one, -d delete replaced, -f refuse delta reuse) + --window=N (how many nearby objects to consider as delta candidates) + --depth=N (max delta chain length) are the knobs that make aggressive compression possible; defaults are tuned for average repos, not for pathological structural mismatches.
  • Pluggable signing. gpg.format=openpgp|ssh|x509 + gpg.x509.program=<signer> let organisations plug GPG / SSH / or S/MIME (X.509) signers into the commit-signing path — see concepts/commit-signing and the Figma device-trust system.

Defaults that matter

  • Delta pairing heuristic: Git pairs files for delta compression using only the last 16 characters of the file path. Works for typical codebases where similar names usually mean similar content; can go pathological when the distinguishing portion of the path falls outside those 16 characters (Dropbox i18n canonical instance — see concepts/git-delta-compression and sources/2026-03-25-dropbox-reducing-monorepo-size-developer-velocity).
  • Repack window / depth defaults (--window=10 --depth=50 on git gc) are conservative; tuned values like --window=250 --depth=250 trade time for compression ratio.
  • --path-walk flag: experimental option that walks the full directory tree for delta-candidate selection instead of using the 16-char heuristic; effective on structurally-mismatched repos but incompatible with GitHub's server-side bitmap / delta-island optimizations.

Stub page

This page exists because Git internals became load-bearing in a wiki source and we need a canonical anchor. Most Git behaviour is out of scope here; see concepts/git-pack-file and concepts/git-delta-compression for the aspects the wiki covers.

Seen in

Last updated · 200 distilled / 1,178 read