We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Refdb
1 parent c4e033a commit a316f79Copy full SHA for a316f79
src/reference.rs
@@ -16,6 +16,12 @@ use crate::{
16
// internally
17
const GIT_REFNAME_MAX: usize = 1024;
18
19
+/// This is used to logically indicate that a [`raw::git_reference`] or
20
+/// [`raw::git_reference_iterator`] holds a reference to [`raw::git_refdb`].
21
+/// It is not necessary to have a wrapper like this in the
22
+/// [`marker::PhantomData`], since all that matters is that it is tied to the
23
+/// lifetime of the [`Repository`], but this helps distinguish the actual
24
+/// references involved.
25
struct Refdb<'repo>(#[allow(dead_code)] &'repo Repository);
26
27
/// A structure to represent a git [reference][1].
0 commit comments