Skip to main content

Module revert

Module revert 

Source
Expand description

mkit revert <commit> | --continue | --abort — create a new commit that undoes a previous commit, with the resolvable-conflict workflow.

Revert is the inverse of cherry-pick (it applies the reverse of the target’s diff) and a normal forward commit — it does not rewrite history, so the reverted commit stays reachable and it is not gated on gc/recovery. On a clean revert we commit the reversed tree with a generated Revert "<subject>" message. On conflict we materialise the conflict material, persist REVERT_HEAD/REVERT_MSG/ORIG_HEAD + the mkit-conflicts sidecar, and exit non-zero; the user resolves, mkit adds, then runs mkit revert --continue (or --abort).

Functions§

run