pub struct Git { /* private fields */ }
Expand description
Performs Git related operations in the crate’s repository
Implementations§
Source§impl Git
impl Git
Sourcepub fn from_env(branch: &str) -> Self
pub fn from_env(branch: &str) -> Self
Creates Git
client from environmesnt variables
§Panics
If CARGO_TAG_EMAIL
or CARGO_TAG_NAME
is not set
Sourcepub fn open(
branch: &str,
email: &str,
name: &str,
) -> Result<Self, Box<dyn Error>>
pub fn open( branch: &str, email: &str, name: &str, ) -> Result<Self, Box<dyn Error>>
Opens the Git repository in the current working directory and uses the
provided email
, name
and branch
to perform Git operations like
commit
and tag
.
Auto Trait Implementations§
impl Freeze for Git
impl RefUnwindSafe for Git
impl Send for Git
impl !Sync for Git
impl Unpin for Git
impl UnwindSafe for Git
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