git-changes attestor
Records which paths a commit changed, as a proof a verifier recomputes from the pushed commit and its trees. It is a sibling of the git attestor, not a new version of it.
| Field | Value |
|---|---|
| Name | git- |
| Predicate type | https: |
| Lifecycle | prematerial |
| Default binary? | Yes (registered by the same plugin as git) |
What it captures
version,hash: the proof version and the object format;sha1is the only one supported.status:completeorincomplete. Whenincomplete,reasonis one ofshallow,base_,unresolved target_,unresolved tree_,unreadable git_orunavailable no_.commit commit,tree: the head commit and its tree.base,base_tree: the merge-base ofHEADand the target branch tip as the clone last fetched it, and its tree.target:{ ref,, diagnostic only. A verifier never reads it for a decision.tip } changes[]:{ path,for each changed path.old_ path, status } delta,head_: the encoded proof data.trees head_is filled only withtrees --attestor-git-.changes- embed- head- trees
Nothing here is trusted on its own. A verifier checks every field against the pushed commit, a base the forge picks, and the hashes of the trees. A wrong claim makes the observation incomplete, which applies every review class. The predicate is capped at 64 KiB.
When to use
In the push-metadata step of a gated push, where a policy needs the set of changed paths to decide which reviews apply. Request it by name; detection never selects it.
Flags
| Flag | Default | Purpose |
|---|---|---|
--attestor-git- | origin's default branch | Branch the push will land on, such as main or origin/. |
--attestor-git- | false | Carry every head tree the proof walks, so the attestation verifies without the pushed pack or a repository. About 44 KB at the median. |
Gotchas
- There is no detector. Pass
-a git-.changes - A shallow clone cannot produce a complete proof; it signs
incompletewith reasonshallow.
See also
Reference generated from the product documentation. Match commands and support details to your installed release.