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