History

delegate-based tree diff traversal for maximum flexibility and performance

Sebastian Thiel committed 5 years ago

Commit cbacca01 parent 230ef045 files · +104 −72Browse files

Showing the changes to git-diff/tests (1 of 5 files). Show all

Unified · Split

git-diff/tests/tree/mod.rs+4−6
@@ -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]

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t