pub struct Git { /* private fields */ }Expand description
Git
This struct holds a path to some repository. The path does not need to be root directory of that repository.
Implementations
sourceimpl Git
impl Git
sourcepub fn new_cmd_for_committing_all_files_with_a_message<S>(
&self,
msg: S
) -> Command where
S: AsRef<str>,
pub fn new_cmd_for_committing_all_files_with_a_message<S>(
&self,
msg: S
) -> Command where
S: AsRef<str>,
sourcepub fn new_cmd_for_adding_an_annotated_tag_with_a_message<S>(
&self,
tag: &Semver,
msg: S
) -> Command where
S: AsRef<str>,
pub fn new_cmd_for_adding_an_annotated_tag_with_a_message<S>(
&self,
tag: &Semver,
msg: S
) -> Command where
S: AsRef<str>,
sourcepub fn new_cmd_for_pushing_to_a_remote(&self, remote: &Remote) -> Command
pub fn new_cmd_for_pushing_to_a_remote(&self, remote: &Remote) -> Command
sourcepub fn current_branch(&self) -> Result<String>
pub fn current_branch(&self) -> Result<String>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Git
impl Send for Git
impl Sync for Git
impl Unpin for Git
impl UnwindSafe for Git
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more