Struct release_utils::Repo
source · pub struct Repo(/* private fields */);Expand description
Git repo.
Implementations§
source§impl Repo
impl Repo
sourcepub fn open() -> Result<Self>
pub fn open() -> Result<Self>
Get a Repo for the current directory.
This will fail if the current directory does not contain a
.git subdirectory.
sourcepub fn open_path<P>(path: P) -> Result<Self>
pub fn open_path<P>(path: P) -> Result<Self>
Get a Repo for the given path.
This will fail if the path does not contain a .git
subdirectory.
sourcepub fn get_commit_message_subject(&self, commit_sha: &str) -> Result<String>
pub fn get_commit_message_subject(&self, commit_sha: &str) -> Result<String>
Get the subject of the commit message for the given commit.
Fetch git tags from the remote.
sourcepub fn does_git_tag_exist(&self, tag: &str) -> Result<bool>
pub fn does_git_tag_exist(&self, tag: &str) -> Result<bool>
Check if a git tag exists locally.
All git tags were fetched at the start of auto-release, so checking locally is sufficient.
Auto Trait Implementations§
impl RefUnwindSafe for Repo
impl Send for Repo
impl Sync for Repo
impl Unpin for Repo
impl UnwindSafe for Repo
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