pub struct GitTargetRepository<'a> { /* private fields */ }
Implementations§
Source§impl<'a> GitTargetRepository<'a>
impl<'a> GitTargetRepository<'a>
pub fn open<P: AsRef<Path>>(value: P) -> Self
pub fn set_env(&mut self, value: &'a Environment)
pub fn path(&self) -> &Path
pub fn create_repo( &self, default_branch: &str, ) -> Result<(), TargetRepositoryError>
pub fn git_config_default_branch(&self) -> Result<String, TargetRepositoryError>
pub fn git_cmd(&self, args: &[&str]) -> Command
Trait Implementations§
Source§impl<'a> TargetRepository for GitTargetRepository<'a>
impl<'a> TargetRepository for GitTargetRepository<'a>
fn start_import( &mut self, git_active_branches: Option<usize>, default_branch: Option<&str>, ) -> Result<(&mut dyn Write, Option<RepositorySavedState>, String), TargetRepositoryError>
fn finish(&mut self) -> Result<(), TargetRepositoryError>
fn verify( &self, verified_repo: &str, subfolder: Option<&str>, ) -> Result<(), TargetRepositoryError>
fn get_saved_state(&self) -> Option<&RepositorySavedState>
fn save_state( &self, state: RepositorySavedState, ) -> Result<(), TargetRepositoryError>
fn remote_list(&self) -> Result<HashSet<String>, TargetRepositoryError>
fn remote_add(&self, name: &str, url: &str) -> Result<(), TargetRepositoryError>
fn checkout(&self, branch: &str) -> Result<(), TargetRepositoryError>
fn fetch_all(&self) -> Result<(), TargetRepositoryError>
Auto Trait Implementations§
impl<'a> Freeze for GitTargetRepository<'a>
impl<'a> RefUnwindSafe for GitTargetRepository<'a>
impl<'a> Send for GitTargetRepository<'a>
impl<'a> Sync for GitTargetRepository<'a>
impl<'a> Unpin for GitTargetRepository<'a>
impl<'a> UnwindSafe for GitTargetRepository<'a>
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> 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