Skip to content

Commit d74833b

Browse files
committed
feat: Reference::TBD
1 parent 27fbbe4 commit d74833b

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

gix/src/reference/mod.rs

+9-7
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,21 @@ impl<'repo> Reference<'repo> {
6565

6666
/// Peeling
6767
impl<'repo> Reference<'repo> {
68-
/// Follow all symbolic targets this reference might point to and peel the underlying object
69-
/// to the end of the chain, and return it.
68+
/// Follow all symbolic targets this reference might point to and peel all annotated tags
69+
/// to their first non-tag target, and return it,
7070
///
71-
/// This is useful to learn where this reference is ultimately pointing to.
71+
/// This is useful to learn where this reference is ultimately pointing to after following
72+
/// the chain of symbolic refs and annotated tags.
7273
pub fn peel_to_id_in_place(&mut self) -> Result<Id<'repo>, peel::Error> {
7374
let oid = self.inner.peel_to_id_in_place(&self.repo.refs, &self.repo.objects)?;
7475
Ok(Id::from_id(oid, self.repo))
7576
}
7677

77-
/// Follow all symbolic targets this reference might point to and peel the underlying object
78-
/// to the end of the chain, and return it, reusing the `packed` buffer if available.
78+
/// Follow all symbolic targets this reference might point to and peel all annotated tags
79+
/// to their first non-tag target, and return it, reusing the `packed` buffer if available.
7980
///
80-
/// This is useful to learn where this reference is ultimately pointing to.
81+
/// This is useful to learn where this reference is ultimately pointing to after following
82+
/// the chain of symbolic refs and annotated tags.
8183
pub fn peel_to_id_in_place_packed(
8284
&mut self,
8385
packed: Option<&gix_ref::packed::Buffer>,
@@ -88,7 +90,7 @@ impl<'repo> Reference<'repo> {
8890
Ok(Id::from_id(oid, self.repo))
8991
}
9092

91-
/// Similar to [`peel_to_id_in_place()`][Reference::peel_to_id_in_place()], but consumes this instance.
93+
/// Similar to [`peel_to_id_in_place()`](Reference::peel_to_id_in_place()), but consumes this instance.
9294
pub fn into_fully_peeled_id(mut self) -> Result<Id<'repo>, peel::Error> {
9395
self.peel_to_id_in_place()
9496
}

0 commit comments

Comments
 (0)