所有命令 · 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-tailRecover invalid tail; requires verified prefix可选
--allScan every stream for drift and repair each drifted stream in one audited pass可选
--dry-runPreview the re-anchor impact without writing the history file可选
--normalize-provenanceRemove invalid provenance; return aggregate-only evidence可选
--author <value>Mutation author可选
--message <value>Audit history message for the repair marker entry可选
--forceForce ownership/lock override可选

示例

pm history repair --help

相关命令