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// OPS1 — diff / graph / merge / cherry_pick.
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// OPS2 — rebase / bisect / blame / stash / restore.
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    BINARY_SNIFF_LEN, DEFAULT_CONTEXT_LINES, DiffEntry, DiffError, DiffKind, DiffResult, HunkLine,
31    HunkLineKind, PatchHunk, StatusEntry, StatusStaging, WhitespaceMode, apply_hunks_subset,
32    detect_exact_renames, diff_line_counts, diff_trees, enumerate_hunks, is_binary,
33    merge_blob_3way, status_diff, status_diff_observed, text_patch, unified_hunks,
34    unified_hunks_opts,
35};
36pub use gc::{GcReport, GcRootsError, collect_roots, live_objects, run_gc};
37pub use graph::{
38    collect_ancestor_set, reachable_closure, reachable_closure_checked, reachable_objects,
39};
40pub use merge::{Conflict, ConflictKind, MergeResult, find_merge_base, is_ancestor, merge_trees};
41pub use recovery::{RecoveryEntry, RecoveryError, RetentionPolicy};
42pub use restore::{RestoreOptions, RestoreReport, restore_tree_to_worktree};
43pub use revert::{RevertError, RevertResult, revert};