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