所有命令 · evidence
pm history repair
Re-anchor a drifted item history chain (recompute hashes, reconcile with the on-disk item) and record an audit marker. Use --all to repair every drifted stream.
Re-anchor a drifted item history chain (recompute hashes, reconcile with the on-disk item) and record an audit marker. Use --all to repair every drifted stream.
用法
pm history repair [options] [id]参数
| <id> | Item id (omit with --all) | 可选 |
|---|
选项
| --salvage-tail | Recover invalid tail; requires verified prefix | 可选 |
|---|---|---|
| --all | Scan every stream for drift and repair each drifted stream in one audited pass | 可选 |
| --dry-run | Preview the re-anchor impact without writing the history file | 可选 |
| --normalize-provenance | Remove invalid provenance; return aggregate-only evidence | 可选 |
| --author <value> | Mutation author | 可选 |
| --message <value> | Audit history message for the repair marker entry | 可选 |
| --force | Force ownership/lock override | 可选 |
示例
pm history repair --help