pub struct Git;Expand description
A helper for handling Git operations.
Implementations§
source§impl Git
impl Git
pub fn clone( url: &Url, working_dir: &Path, reference: Option<&str>, ) -> Result<()>
sourcepub fn clone_and_degit(
url: &str,
target: &Path,
tag_version: Option<String>,
) -> Result<Option<String>>
pub fn clone_and_degit( url: &str, target: &Path, tag_version: Option<String>, ) -> Result<Option<String>>
Clone a Git repository and degit it.
§Arguments
url- the URL of the repository to clone.target- location where the repository will be cloned.tag_version- the specific tag or version of the repository to use
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