File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -67,15 +67,17 @@ pub struct Info {
67
67
pub commit_time : Option < gix_date:: SecondsSinceUnixEpoch > ,
68
68
}
69
69
70
- /// TODO
70
+ /// Information about a commit that can be obtained either from a [`gix_object::CommitRefIter`] or
71
+ /// a [`gix_commitgraph::file::Commit`].
71
72
pub enum Either < ' buf , ' cache > {
72
- /// TODO
73
+ /// See [`gix_object::CommitRefIter`].
73
74
CommitRefIter ( gix_object:: CommitRefIter < ' buf > ) ,
74
- /// TODO
75
+ /// See [`gix_commitgraph::file::Commit`].
75
76
CachedCommit ( gix_commitgraph:: file:: Commit < ' cache > ) ,
76
77
}
77
78
78
- /// TODO
79
+ /// Find information about a commit by either getting it from a [`gix_commitgraph::Graph`], if
80
+ /// present, or a [`gix_object::CommitRefIter`] otherwise.
79
81
pub fn find < ' cache , ' buf , Find > (
80
82
cache : Option < & ' cache gix_commitgraph:: Graph > ,
81
83
objects : Find ,
You can’t perform that action at this time.
0 commit comments