gix_diff/tree_with_rewrites/
mod.rs1use crate::{tree::recorder::Location, Rewrites};
2
3mod change;
4pub use change::{Change, ChangeRef};
5
6#[derive(Debug, thiserror::Error)]
8#[allow(missing_docs)]
9pub enum Error {
10 #[error(transparent)]
11 Diff(#[from] crate::tree::Error),
12 #[error("The user-provided callback failed")]
13 ForEach(#[source] Box<dyn std::error::Error + Send + Sync + 'static>),
14 #[error("Failure during rename tracking")]
15 RenameTracking(#[from] crate::rewrites::tracker::emit::Error),
16}
17
18#[derive(Default, Clone, Copy, PartialOrd, PartialEq, Ord, Eq, Hash)]
20pub enum Action {
21 #[default]
23 Continue,
24 Cancel,
26}
27
28#[derive(Default, Clone, Debug)]
30pub struct Options {
31 pub location: Option<Location>,
34 pub rewrites: Option<Rewrites>,
36}
37
38pub(super) mod function;