Skip to content

Commit 1f5df00

Browse files
committed
Document gix_traverse::commit::find
1 parent 03541f1 commit 1f5df00

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

gix-traverse/src/commit/mod.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,17 @@ pub struct Info {
6767
pub commit_time: Option<gix_date::SecondsSinceUnixEpoch>,
6868
}
6969

70-
/// TODO
70+
/// Information about a commit that can be obtained either from a [`gix_object::CommitRefIter`] or
71+
/// a [`gix_commitgraph::file::Commit`].
7172
pub enum Either<'buf, 'cache> {
72-
/// TODO
73+
/// See [`gix_object::CommitRefIter`].
7374
CommitRefIter(gix_object::CommitRefIter<'buf>),
74-
/// TODO
75+
/// See [`gix_commitgraph::file::Commit`].
7576
CachedCommit(gix_commitgraph::file::Commit<'cache>),
7677
}
7778

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.
7981
pub fn find<'cache, 'buf, Find>(
8082
cache: Option<&'cache gix_commitgraph::Graph>,
8183
objects: Find,

0 commit comments

Comments
 (0)