Skip to main content

mkit_core/ops/
mod.rs

1//! `mkit_core::ops` — high-level history operations on top of the
2//! content-addressed object store.
3//!
4//! Submodules are split by concern. Public surface is intentionally
5//! narrow.
6
7// Phase 5a — diff / graph / merge / cherry_pick (OPS1).
8pub mod cherry_pick;
9pub mod conflict_state;
10pub mod diff;
11pub mod gc;
12pub mod graph;
13pub mod merge;
14pub mod revert;
15
16// Phase 5b — rebase / bisect / blame / stash / restore (OPS2).
17pub mod bisect;
18pub mod blame;
19pub mod rebase;
20pub mod recovery;
21pub mod restore;
22pub mod stash;
23
24pub use cherry_pick::{CherryPickError, CherryPickResult, cherry_pick};
25pub use conflict_state::{
26    CherryPickState, ConflictRecord, ConflictStateError, MergeState, RevertState,
27    any_op_in_progress, in_progress_op_name,
28};
29pub use diff::{
30    DiffEntry, DiffError, DiffKind, DiffResult, HunkLine, HunkLineKind, PatchHunk, StatusEntry,
31    StatusStaging, apply_hunks_subset, diff_line_counts, diff_trees, enumerate_hunks,
32    merge_blob_3way, status_diff, status_diff_observed, text_patch, unified_hunks,
33};
34pub use gc::{GcReport, GcRootsError, collect_roots, live_objects, run_gc};
35pub use graph::{
36    collect_ancestor_set, reachable_closure, reachable_closure_checked, reachable_objects,
37};
38pub use merge::{Conflict, ConflictKind, MergeResult, find_merge_base, is_ancestor, merge_trees};
39pub use recovery::{RecoveryEntry, RecoveryError, RetentionPolicy};
40pub use restore::{RestoreOptions, RestoreReport, restore_tree_to_worktree};
41pub use revert::{RevertError, RevertResult, revert};