Showing the changes to git-diff/tests (1 of 5 files). Show all
Unified · Split
| @@ -41,14 +41,12 @@ mod with_tree { · 40 unmodified lines | |||
| 41 | .and_then(|tree| tree.into_tree()) | 41 | .and_then(|tree| tree.into_tree()) |
| 42 | }; | 42 | }; |
| 43 | 43 | ||
| 44 | let (mut buf3, mut buf4) = (Vec::new(), Vec::new()); | 44 | git_diff::tree::VisitChanges::from(previous_tree.as_ref()).to_obtain( |
| 45 | git_diff::tree::Changes::from(previous_tree.as_ref()).to_obtain( | ||
| 46 | &main_tree, | 45 | &main_tree, |
| 47 | (&mut buf3, &mut buf4), | 46 | &mut git_diff::tree::State::default(), |
| 48 | |_oid, _buf| todo!("Actual lookup in db"), | 47 | |_oid, _buf| todo!("Actual lookup in db"), |
| 49 | &mut git_diff::tree::PathTree::default(), | 48 | &mut git_diff::tree::delegate::Recorder::default(), |
| 50 | &mut Vec::new(), | 49 | )?; |
| 51 | ); | ||
| 52 | Ok(()) | 50 | Ok(()) |
| 53 | } | 51 | } |
| 54 | #[test] | 52 | #[test] |