Skip to content

Instantly share code, notes, and snippets.

@hartsock
Last active October 24, 2026 22:52
Show Gist options
  • Select an option

  • Save hartsock/49877fe59cdfececd906074211404dcf to your computer and use it in GitHub Desktop.

Select an option

Save hartsock/49877fe59cdfececd906074211404dcf to your computer and use it in GitHub Desktop.
Gerrit alone, then Gerrit with a store: animation for JGit change 1255942

Gerrit alone, then Gerrit with a store

Animated data flow for JGit change 1255942, Resolve promised blobs through the file object database.

Gerrit alone, then Gerrit with a store

Steps 1 to 3 are a Gerrit server alone, the normal mode: clients take a filtered clone and stock git lazy-fetches any skipped blob from Gerrit itself. Nothing on the server changes beyond uploadpack.allowFilter.

Steps 4 to 8 add an external store. An offload job copies blobs over a size limit to the store, writes a manifest and repacks them away as a promisor pack. When a review or a fetch needs such a blob, the resolver proposed in the change reads it back and JGit installs it only if the bytes hash to the promised object id. Clients are unchanged.

The GIF is rendered from a small scene description by a hand-written SVG engine; the raw file is linked from this gist for embedding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment