Expand description
mkit_core::ops — high-level history operations on top of the
content-addressed object store.
Submodules are split by concern. Public surface is intentionally narrow.
Re-exports§
pub use cherry_pick::CherryPickError;pub use cherry_pick::CherryPickResult;pub use cherry_pick::cherry_pick;pub use conflict_state::CherryPickState;pub use conflict_state::ConflictRecord;pub use conflict_state::ConflictStateError;pub use conflict_state::MergeState;pub use conflict_state::RevertState;pub use conflict_state::any_op_in_progress;pub use conflict_state::in_progress_op_name;pub use diff::DiffEntry;pub use diff::DiffError;pub use diff::DiffKind;pub use diff::DiffResult;pub use diff::HunkLine;pub use diff::HunkLineKind;pub use diff::PatchHunk;pub use diff::StatusEntry;pub use diff::StatusStaging;pub use diff::apply_hunks_subset;pub use diff::diff_line_counts;pub use diff::diff_trees;pub use diff::enumerate_hunks;pub use diff::merge_blob_3way;pub use diff::status_diff;pub use diff::status_diff_observed;pub use diff::text_patch;pub use diff::unified_hunks;pub use gc::GcReport;pub use gc::GcRootsError;pub use gc::collect_roots;pub use gc::live_objects;pub use gc::run_gc;pub use graph::collect_ancestor_set;pub use graph::reachable_closure;pub use graph::reachable_closure_checked;pub use graph::reachable_objects;pub use merge::Conflict;pub use merge::ConflictKind;pub use merge::MergeResult;pub use merge::find_merge_base;pub use merge::is_ancestor;pub use merge::merge_trees;pub use recovery::RecoveryEntry;pub use recovery::RecoveryError;pub use recovery::RetentionPolicy;pub use restore::RestoreOptions;pub use restore::RestoreReport;pub use restore::restore_tree_to_worktree;pub use revert::RevertError;pub use revert::RevertResult;pub use revert::revert;
Modules§
- bisect
- Bisect.
- blame
- Blame.
- cherry_
pick - Single-commit cherry-pick onto a different base tree.
- conflict_
state - Conflict / operation state sidecar.
- diff
- Tree-level structural diff.
- gc
- GC retention roots — the complete set of object hashes that
mkit gc(#233) must treat as live, plus the live-object closure over them. - graph
- Commit-graph traversal helpers.
- merge
- 3-way tree merge + commit-graph merge-base + ancestry test.
- rebase
- Rebase state machine.
- recovery
- Recovery log — durable record of commits superseded by
history-rewriting operations (
commit --amend,reset,rebase), so they (a) remain GC roots within a retention window and (b) can be surfaced and restored. This is Part 2 of #260, the recovery half of the gc model (Part 1 added the reachability root set insuper::gc). - restore
- Restore.
- revert
- Single-commit revert onto a base tree — the inverse of cherry-pick.
- stash
- Stash.