File tree 2 files changed +26
-3
lines changed
git-repository/src/object/tree
2 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ impl<'repo> Tree<'repo> {
22
22
Id :: from_id ( self . id , self . repo )
23
23
}
24
24
25
- // TODO: move implementation to git-object, tests.
25
+ // TODO: tests.
26
26
/// Follow a sequence of `path` components starting from this instance, and look them up one by one until the last component
27
27
/// is looked up and its tree entry is returned.
28
28
///
@@ -62,6 +62,29 @@ impl<'repo> Tree<'repo> {
62
62
}
63
63
}
64
64
65
+ #[ allow( missing_docs) ]
66
+ ///
67
+ pub mod diff {
68
+ use crate :: Tree ;
69
+
70
+ impl < ' repo > Tree < ' repo > {
71
+ pub fn changes < ' other_repo , ' a > ( & ' a self ) -> Platform < ' a , ' repo > {
72
+ Platform { lhs : self }
73
+ }
74
+ }
75
+
76
+ #[ allow( dead_code) ]
77
+ pub struct Platform < ' a , ' repo > {
78
+ lhs : & ' a Tree < ' repo > ,
79
+ }
80
+
81
+ impl < ' a , ' repo > Platform < ' a , ' repo > {
82
+ pub fn to_obtain_tree ( & self , _other : & Tree < ' _ > ) {
83
+ todo ! ( )
84
+ }
85
+ }
86
+ }
87
+
65
88
///
66
89
pub mod traverse;
67
90
Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ impl<'repo> Tree<'repo> {
15
15
/// An intermediate object to start traversing the parent tree from.
16
16
pub struct Platform < ' a , ' repo > {
17
17
root : & ' a Tree < ' repo > ,
18
- /// TODO: EXPLAIN
18
+ # [ allow ( missing_docs ) ] // TODO
19
19
pub breadthfirst : BreadthFirstPresets < ' a , ' repo > ,
20
20
}
21
21
22
- /// TODO: explain THIS!
22
+ # [ allow ( missing_docs ) ] // TODO
23
23
#[ derive( Copy , Clone ) ]
24
24
pub struct BreadthFirstPresets < ' a , ' repo > {
25
25
root : & ' a Tree < ' repo > ,
You can’t perform that action at this time.
0 commit comments