Skip to main content

Module pinned_tree

Module pinned_tree 

Source
Expand description

Owned, exact-commit input capture for consumers that cannot trust a worktree.

Callers may consume PinnedTree::file bytes directly or retain a Linux SealedTreeProjection for legacy path readers. Copying these bytes back into a writable worktree does not preserve the pin. Acquisition currently buffers the full resolved tree before sealing, so memory use is proportional to the model size until projection completes.

Structsยง

PinnedFile
One resolved input with its source Git blob identity.
PinnedTree
A complete commit tree captured independently of a mutable checkout.
SealedTreeProjection
A private directory whose entries point to sealed, owned Linux memfds.