pub struct DefaultGitOperations;Trait Implementations§
Source§impl GitOperations for DefaultGitOperations
impl GitOperations for DefaultGitOperations
fn is_git_repository<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<bool, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_branch<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repo_path: &'life1 Path,
branch_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_status<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn add_all<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn commit<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repo_path: &'life1 Path,
message: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn add_remote<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
repo_path: &'life1 Path,
remote_name: &'life2 str,
url: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn fetch_branch<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
repo_path: &'life1 Path,
remote_name: &'life2 str,
branch_name: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn remove_remote<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repo_path: &'life1 Path,
remote_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn has_commits_not_in_base<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
repo_path: &'life1 Path,
branch_name: &'life2 str,
base_branch: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<bool, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn has_commits_not_in_base<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
repo_path: &'life1 Path,
branch_name: &'life2 str,
base_branch: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<bool, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Check if a branch has commits that are not in the base branch
Source§fn delete_branch<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repo_path: &'life1 Path,
branch_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn delete_branch<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repo_path: &'life1 Path,
branch_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Delete a branch
Source§fn get_current_commit<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_current_commit<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get the current commit SHA
Source§fn create_branch_from_commit<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
repo_path: &'life1 Path,
branch_name: &'life2 str,
commit_sha: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn create_branch_from_commit<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
repo_path: &'life1 Path,
branch_name: &'life2 str,
commit_sha: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Create a branch from a specific commit
Source§fn get_tracked_files<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<Vec<PathBuf>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_tracked_files<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<Vec<PathBuf>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get list of tracked files in the repository
Source§fn get_untracked_files<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<Vec<PathBuf>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_untracked_files<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<Vec<PathBuf>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get list of untracked files that are not ignored
Auto Trait Implementations§
impl Freeze for DefaultGitOperations
impl RefUnwindSafe for DefaultGitOperations
impl Send for DefaultGitOperations
impl Sync for DefaultGitOperations
impl Unpin for DefaultGitOperations
impl UnwindSafe for DefaultGitOperations
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