pub trait GitOperations: Send + Sync {
Show 14 methods
// Required methods
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;
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 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 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 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 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_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;
}Required Methods§
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,
Sourcefn 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
Sourcefn 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
Sourcefn 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
Sourcefn 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
Sourcefn 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
Sourcefn 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