diff_snapshots(
bound: WorkspaceSnapshot | None,
current: WorkspaceSnapshot,
*,
changed_names: Sequence| Name | Type | Description |
|---|---|---|
bound* | WorkspaceSnapshot | None | |
current* | WorkspaceSnapshot | |
changed_names | Sequence[str] | None | Default: None |
Compare a persisted snapshot against the current one.
Fields present in the snapshots are compared with values; fields named in
changed_names (e.g. fingerprint-only or path-valued fields detected by a
fingerprint comparison) are reported as changed without values.
The snapshot persisted with the binding, or None for a
legacy binding that predates snapshots.
The snapshot built from the current resolved policy.
Field names known to differ that snapshots do not carry values for.