Reconstruct a one-file change#
Suppose an approved transfer can carry a change to controller.ini, and the recipient already has the release commit. The sender has confirmed that the proposed commit changes only that file. In the transfer record, include the full base commit ID, the proposed tree ID from git rev-parse 'review^{tree}' and the patch written by git diff --default-prefix --binary approved-base review.
On the recipient machine, replace the placeholder with the base ID from the record and start from a clean checkout.
git switch --detach <recorded-base-commit>
git apply --check --index /approved-transfer/timeout.patch
git apply --index /approved-transfer/timeout.patch
git write-tree
If the resulting tree ID differs, stop before attaching an approval. Ask whether the transfer omitted a file, the sender named the wrong tree, or the receiver had other staged edits. A matching ID links the review to a tracked snapshot. It carries no claim about who authored a commit. Git apply and index checks · Git write-tree
If the transfer was approved for only one file of a larger change, compare the result to an explicitly scoped fixture. Keep the scope with the decision instead of approving the sender’s full tree.