File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -67,12 +67,18 @@ pub struct Info {
6767 pub commit_time : Option < gix_date:: SecondsSinceUnixEpoch > ,
6868}
6969
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`].
7174 CommitRefIter ( gix_object:: CommitRefIter < ' buf > ) ,
75+ /// See [`gix_commitgraph::file::Commit`].
7276 CachedCommit ( gix_commitgraph:: file:: Commit < ' cache > ) ,
7377}
7478
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 > (
7682 cache : Option < & ' cache gix_commitgraph:: Graph > ,
7783 objects : Find ,
7884 id : & gix_hash:: oid ,
You can’t perform that action at this time.
0 commit comments