pub struct GitRepo { /* private fields */ }Implementations§
Source§impl GitRepo
impl GitRepo
Sourcepub fn find_commit(&self, hash_str: &str) -> Option<CommitInfo>
pub fn find_commit(&self, hash_str: &str) -> Option<CommitInfo>
Try to find a commit by hash (can be short or full)
Get all tags in the repository
Get all tags in the repository, enriched with GitHub release info
Expose tags that contain the specified commit.
Sourcepub fn tag_from_release(&self, release: &ReleaseInfo) -> Option<TagInfo>
pub fn tag_from_release(&self, release: &ReleaseInfo) -> Option<TagInfo>
Convert a GitHub release into tag metadata if the tag exists locally.
Sourcepub fn tag_contains_commit(
&self,
tag_commit_hash: &str,
commit_hash: &str,
) -> bool
pub fn tag_contains_commit( &self, tag_commit_hash: &str, commit_hash: &str, ) -> bool
Check whether a release tag contains the specified commit.
Sourcepub fn github_remote(&self) -> Option<(String, String)>
pub fn github_remote(&self) -> Option<(String, String)>
Get the GitHub remote URL if it exists (checks all remotes)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GitRepo
impl RefUnwindSafe for GitRepo
impl Send for GitRepo
impl Sync for GitRepo
impl Unpin for GitRepo
impl UnwindSafe for GitRepo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more