Skip to content

Commit

Permalink
silently re-add diff::tree::ChangeDetached
Browse files Browse the repository at this point in the history
It's nice to have a symmetric API and it fits into `gix`.
  • Loading branch information
Byron committed Oct 11, 2024
1 parent f8952e4 commit c18ebbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gix/src/object/tree/diff/change.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use super::ChangeDetached;
use crate::bstr::{BStr, ByteSlice};
use crate::ext::ObjectIdExt;
use crate::object::tree::diff::Change;
use crate::Repository;
use gix_diff::tree_with_rewrites::Change as ChangeDetached;

impl Change<'_, '_, '_> {
/// Produce a platform for performing a line-diff no matter whether the underlying [Change] is an addition, modification,
Expand Down
2 changes: 2 additions & 0 deletions gix/src/object/tree/diff/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ pub enum Action {
Cancel,
}

pub use gix_diff::tree_with_rewrites::Change as ChangeDetached;

/// Represents any possible change in order to turn one tree into another.
#[derive(Debug, Clone, Copy)]
pub enum Change<'a, 'old, 'new> {
Expand Down

0 comments on commit c18ebbe

Please sign in to comment.