Skip to content

Commit

Permalink
merged_tree: remove .diff() method in favor of .diff_stream()
Browse files Browse the repository at this point in the history
It's unlikely we'll need the iterator version of .diff() except for testing
the stream implementation.
  • Loading branch information
yuja committed Aug 8, 2024
1 parent 24b8934 commit 202fb53
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions lib/src/merged_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,19 +308,10 @@ impl MergedTree {
TreeEntriesIterator::new(self.clone(), matcher)
}

/// Iterate over the differences between this tree and another tree.
/// Stream of the differences between this tree and another tree.
///
/// The files in a removed tree will be returned before a file that replaces
/// it.
pub fn diff<'matcher>(
&self,
other: &MergedTree,
matcher: &'matcher dyn Matcher,
) -> TreeDiffIterator<'matcher> {
TreeDiffIterator::new(self.clone(), other.clone(), matcher)
}

/// Stream of the differences between this tree and another tree.
pub fn diff_stream<'matcher>(
&self,
other: &MergedTree,
Expand Down

0 comments on commit 202fb53

Please sign in to comment.