summaryrefslogtreecommitdiffstats
path: root/vendor/gix/src/repository/revision.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gix/src/repository/revision.rs')
-rw-r--r--vendor/gix/src/repository/revision.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/gix/src/repository/revision.rs b/vendor/gix/src/repository/revision.rs
index 3018c2be8..bb9b56d57 100644
--- a/vendor/gix/src/repository/revision.rs
+++ b/vendor/gix/src/repository/revision.rs
@@ -1,4 +1,5 @@
use crate::{bstr::BStr, revision, Id};
+use gix_macros::momo;
/// Methods for resolving revisions by spec or working with the commit graph.
impl crate::Repository {
@@ -8,6 +9,8 @@ impl crate::Repository {
///
/// - `@` actually stands for `HEAD`, whereas `git` resolves it to the object pointed to by `HEAD` without making the
/// `HEAD` ref available for lookups.
+ #[doc(alias = "revparse", alias = "git2")]
+ #[momo]
pub fn rev_parse<'a>(&self, spec: impl Into<&'a BStr>) -> Result<revision::Spec<'_>, revision::spec::parse::Error> {
revision::Spec::from_bstr(
spec,
@@ -20,6 +23,7 @@ impl crate::Repository {
}
/// Parse a revision specification and return single object id as represented by this instance.
+ #[doc(alias = "revparse_single", alias = "git2")]
pub fn rev_parse_single<'repo, 'a>(
&'repo self,
spec: impl Into<&'a BStr>,
@@ -33,6 +37,7 @@ impl crate::Repository {
/// Create the baseline for a revision walk by initializing it with the `tips` to start iterating on.
///
/// It can be configured further before starting the actual walk.
+ #[doc(alias = "revwalk", alias = "git2")]
pub fn rev_walk(
&self,
tips: impl IntoIterator<Item = impl Into<gix_hash::ObjectId>>,