mod absorb;
mod apply;
mod drop;
mod error;
mod exec;
mod fixup;
mod last;
mod r#move;
mod plan;
mod rebase;
mod rebase_session;
mod reword;
mod split;
mod squash;
mod subject;
mod types;
mod undo;
pub use absorb::{
absorb, default_absorb_base, format_hunk_range_header, staged_absorb_paths, AbsorbOptions,
AbsorbPlan, HunkAssignment, HunkRange, UnassignedHunk, UnassignedReason,
DEFAULT_ABSORB_STACK_LIMIT,
};
pub use apply::{apply_absorb_rewrite, apply_fixup_rewrite, apply_rewrite, verify_rewrite_plan};
pub use drop::drop;
pub use error::HistoryError;
pub use exec::{verify_rebase_with_exec, ExecReport, ExecRunRecord, ExecSpec};
pub use fixup::{
apply_fixup_hunk_selection, fixup, fixup_selection_paths, staged_fixup_paths, FixupOptions,
};
pub use last::{read_history_last, HistoryLastRecord};
pub use plan::plan_rewrite;
#[cfg(any(test, feature = "unstable-bench-helpers"))]
pub use plan::{test_merge_tree_call_count, test_reset_merge_tree_call_count};
pub use r#move::{move_commit, Placement};
pub use rebase::{
plan_rebase, plan_rebase_check, rebase_onto, RebaseCheckPlan, RebaseOntoOptions, RebasePlan,
RebaseRequest,
};
#[cfg(any(test, feature = "unstable-bench-helpers"))]
pub use rebase::{test_patch_id_compute_call_count, test_reset_patch_id_compute_call_count};
pub use rebase_session::{
abort_rebase, continue_rebase, skip_rebase, start_rebase, RebaseOutcome, RebaseSessionError,
RebaseStop, StartRebaseOptions,
};
pub use reword::{normalize_rewrite_message, reword, reword_with, RewordOptions};
pub use split::split;
pub use squash::{squash, SquashMessage, SquashOptions};
pub use subject::{commit_message_subject_line, rewritten_row_subject};
pub use types::{
AppliedRewrite, ApplyOptions, CommitEdit, EmptyPolicy, HeadEffect, HistoryEdits, NewCommit,
Pathspec, PlannedRefUpdate, RefScope, RewriteOptions, RewritePlan, RewrittenCommit,
SplitOptions, UndoOutcome,
};
pub use undo::undo_last_rewrite;