pub struct GitAt<'a, R: ProcessRunner = JobRunner> { /* private fields */ }Expand description
Implementations§
Source§impl<'a, R: ProcessRunner> GitAt<'a, R>
impl<'a, R: ProcessRunner> GitAt<'a, R>
Sourcepub async fn capabilities(&self) -> Result<GitCapabilities>
pub async fn capabilities(&self) -> Result<GitCapabilities>
Bound form of Git’s capabilities.
Sourcepub async fn clone_repo(
&self,
url: &str,
dest: &Path,
spec: CloneSpec,
) -> Result<()>
pub async fn clone_repo( &self, url: &str, dest: &Path, spec: CloneSpec, ) -> Result<()>
Bound form of Git’s clone_repo.
Sourcepub async fn status(&self) -> Result<Vec<StatusEntry>>
pub async fn status(&self) -> Result<Vec<StatusEntry>>
Bound form of Git’s status (with dir pre-bound).
Sourcepub async fn status_text(&self) -> Result<String>
pub async fn status_text(&self) -> Result<String>
Bound form of Git’s status_text (with dir pre-bound).
Sourcepub async fn status_tracked(&self) -> Result<Vec<StatusEntry>>
pub async fn status_tracked(&self) -> Result<Vec<StatusEntry>>
Bound form of Git’s status_tracked (with dir pre-bound).
Sourcepub async fn branch_status(&self) -> Result<BranchStatus>
pub async fn branch_status(&self) -> Result<BranchStatus>
Bound form of Git’s branch_status (with dir pre-bound).
Sourcepub async fn conflicted_files(&self) -> Result<Vec<PathBuf>>
pub async fn conflicted_files(&self) -> Result<Vec<PathBuf>>
Bound form of Git’s conflicted_files (with dir pre-bound).
Sourcepub async fn current_branch(&self) -> Result<Option<String>>
pub async fn current_branch(&self) -> Result<Option<String>>
Bound form of Git’s current_branch (with dir pre-bound).
Sourcepub async fn branches(&self) -> Result<Vec<Branch>>
pub async fn branches(&self) -> Result<Vec<Branch>>
Bound form of Git’s branches (with dir pre-bound).
Sourcepub async fn log(&self, revspec: &RevSpec, max: usize) -> Result<Vec<Commit>>
pub async fn log(&self, revspec: &RevSpec, max: usize) -> Result<Vec<Commit>>
Bound form of Git’s log (with dir pre-bound).
Sourcepub async fn log_paths(
&self,
revspec: &RevSpec,
max: usize,
paths: &[String],
) -> Result<Vec<Commit>>
pub async fn log_paths( &self, revspec: &RevSpec, max: usize, paths: &[String], ) -> Result<Vec<Commit>>
Bound form of Git’s log_paths (with dir pre-bound).
Sourcepub async fn rev_parse(&self, rev: &RevSpec) -> Result<String>
pub async fn rev_parse(&self, rev: &RevSpec) -> Result<String>
Bound form of Git’s rev_parse (with dir pre-bound).
Sourcepub async fn rev_parse_short(&self, rev: &RevSpec) -> Result<String>
pub async fn rev_parse_short(&self, rev: &RevSpec) -> Result<String>
Bound form of Git’s rev_parse_short (with dir pre-bound).
Sourcepub async fn add(&self, paths: &[PathBuf]) -> Result<()>
pub async fn add(&self, paths: &[PathBuf]) -> Result<()>
Bound form of Git’s add (with dir pre-bound).
Sourcepub async fn commit(&self, message: &str) -> Result<()>
pub async fn commit(&self, message: &str) -> Result<()>
Bound form of Git’s commit (with dir pre-bound).
Sourcepub async fn create_branch(&self, name: &RefName) -> Result<()>
pub async fn create_branch(&self, name: &RefName) -> Result<()>
Bound form of Git’s create_branch (with dir pre-bound).
Sourcepub async fn checkout(&self, target: &CheckoutTarget) -> Result<()>
pub async fn checkout(&self, target: &CheckoutTarget) -> Result<()>
Bound form of Git’s checkout (with dir pre-bound).
Sourcepub async fn checkout_detach(&self, commit: &RevSpec) -> Result<()>
pub async fn checkout_detach(&self, commit: &RevSpec) -> Result<()>
Bound form of Git’s checkout_detach (with dir pre-bound).
Sourcepub async fn commit_paths(&self, spec: CommitPaths) -> Result<()>
pub async fn commit_paths(&self, spec: CommitPaths) -> Result<()>
Bound form of Git’s commit_paths (with dir pre-bound).
Sourcepub async fn last_commit_message(&self) -> Result<String>
pub async fn last_commit_message(&self) -> Result<String>
Bound form of Git’s last_commit_message (with dir pre-bound).
Sourcepub async fn is_unborn(&self) -> Result<bool>
pub async fn is_unborn(&self) -> Result<bool>
Bound form of Git’s is_unborn (with dir pre-bound).
Sourcepub async fn diff_is_empty(&self) -> Result<bool>
pub async fn diff_is_empty(&self) -> Result<bool>
Bound form of Git’s diff_is_empty (with dir pre-bound).
Sourcepub async fn common_dir(&self) -> Result<PathBuf>
pub async fn common_dir(&self) -> Result<PathBuf>
Bound form of Git’s common_dir (with dir pre-bound).
Sourcepub async fn git_dir(&self) -> Result<PathBuf>
pub async fn git_dir(&self) -> Result<PathBuf>
Bound form of Git’s git_dir (with dir pre-bound).
Sourcepub async fn resolve_commit(&self, rev: &RevSpec) -> Result<String>
pub async fn resolve_commit(&self, rev: &RevSpec) -> Result<String>
Bound form of Git’s resolve_commit (with dir pre-bound).
Sourcepub async fn remote_head_branch(&self) -> Result<Option<String>>
pub async fn remote_head_branch(&self) -> Result<Option<String>>
Bound form of Git’s remote_head_branch (with dir pre-bound).
Sourcepub async fn branch_exists(&self, name: &RefName) -> Result<bool>
pub async fn branch_exists(&self, name: &RefName) -> Result<bool>
Bound form of Git’s branch_exists (with dir pre-bound).
Sourcepub async fn remote_branch_exists(&self, name: &RefName) -> Result<bool>
pub async fn remote_branch_exists(&self, name: &RefName) -> Result<bool>
Bound form of Git’s remote_branch_exists (with dir pre-bound).
Sourcepub async fn remote_url(&self, remote: &str) -> Result<String>
pub async fn remote_url(&self, remote: &str) -> Result<String>
Bound form of Git’s remote_url (with dir pre-bound).
Sourcepub async fn upstream(&self) -> Result<Option<String>>
pub async fn upstream(&self) -> Result<Option<String>>
Bound form of Git’s upstream (with dir pre-bound).
Sourcepub async fn remote_branches(&self, remote: &str) -> Result<Vec<String>>
pub async fn remote_branches(&self, remote: &str) -> Result<Vec<String>>
Bound form of Git’s remote_branches (with dir pre-bound).
Sourcepub async fn is_merged(&self, spec: MergeCheck) -> Result<bool>
pub async fn is_merged(&self, spec: MergeCheck) -> Result<bool>
Bound form of Git’s is_merged (with dir pre-bound).
Sourcepub async fn set_upstream(
&self,
branch: &RefName,
upstream: &RefName,
) -> Result<()>
pub async fn set_upstream( &self, branch: &RefName, upstream: &RefName, ) -> Result<()>
Bound form of Git’s set_upstream (with dir pre-bound).
Sourcepub async fn delete_branch(&self, spec: BranchDelete) -> Result<()>
pub async fn delete_branch(&self, spec: BranchDelete) -> Result<()>
Bound form of Git’s delete_branch (with dir pre-bound).
Sourcepub async fn rename_branch(&self, old: &RefName, new: &RefName) -> Result<()>
pub async fn rename_branch(&self, old: &RefName, new: &RefName) -> Result<()>
Bound form of Git’s rename_branch (with dir pre-bound).
Sourcepub async fn rev_list_count(&self, range: &RevSpec) -> Result<usize>
pub async fn rev_list_count(&self, range: &RevSpec) -> Result<usize>
Bound form of Git’s rev_list_count (with dir pre-bound).
Sourcepub async fn diff_range_is_empty(&self, range: &RevSpec) -> Result<bool>
pub async fn diff_range_is_empty(&self, range: &RevSpec) -> Result<bool>
Bound form of Git’s diff_range_is_empty (with dir pre-bound).
Sourcepub async fn diff_stat(&self, range: &RevSpec) -> Result<DiffStat>
pub async fn diff_stat(&self, range: &RevSpec) -> Result<DiffStat>
Bound form of Git’s diff_stat (with dir pre-bound).
Sourcepub async fn diff_text(&self, spec: DiffSpec) -> Result<String>
pub async fn diff_text(&self, spec: DiffSpec) -> Result<String>
Bound form of Git’s diff_text (with dir pre-bound).
Sourcepub async fn diff(&self, spec: DiffSpec) -> Result<Vec<FileDiff>>
pub async fn diff(&self, spec: DiffSpec) -> Result<Vec<FileDiff>>
Bound form of Git’s diff (with dir pre-bound).
Sourcepub async fn staged_is_empty(&self) -> Result<bool>
pub async fn staged_is_empty(&self) -> Result<bool>
Bound form of Git’s staged_is_empty (with dir pre-bound).
Sourcepub async fn is_rebase_in_progress(&self) -> Result<bool>
pub async fn is_rebase_in_progress(&self) -> Result<bool>
Bound form of Git’s is_rebase_in_progress (with dir pre-bound).
Sourcepub async fn is_merge_in_progress(&self) -> Result<bool>
pub async fn is_merge_in_progress(&self) -> Result<bool>
Bound form of Git’s is_merge_in_progress (with dir pre-bound).
Sourcepub async fn is_am_in_progress(&self) -> Result<bool>
pub async fn is_am_in_progress(&self) -> Result<bool>
Bound form of Git’s is_am_in_progress (with dir pre-bound).
Sourcepub async fn is_cherry_pick_in_progress(&self) -> Result<bool>
pub async fn is_cherry_pick_in_progress(&self) -> Result<bool>
Bound form of Git’s is_cherry_pick_in_progress (with dir pre-bound).
Sourcepub async fn is_revert_in_progress(&self) -> Result<bool>
pub async fn is_revert_in_progress(&self) -> Result<bool>
Bound form of Git’s is_revert_in_progress (with dir pre-bound).
Sourcepub async fn is_bisect_in_progress(&self) -> Result<bool>
pub async fn is_bisect_in_progress(&self) -> Result<bool>
Bound form of Git’s is_bisect_in_progress (with dir pre-bound).
Sourcepub async fn fetch_from(&self, remote: &str) -> Result<()>
pub async fn fetch_from(&self, remote: &str) -> Result<()>
Bound form of Git’s fetch_from (with dir pre-bound).
Sourcepub async fn fetch_branch(&self, branch: &RefName) -> Result<()>
pub async fn fetch_branch(&self, branch: &RefName) -> Result<()>
Bound form of Git’s fetch_branch (with dir pre-bound).
Sourcepub async fn push(&self, spec: GitPush) -> Result<()>
pub async fn push(&self, spec: GitPush) -> Result<()>
Bound form of Git’s push (with dir pre-bound).
Sourcepub async fn merge_squash(&self, branch: &RevSpec) -> Result<()>
pub async fn merge_squash(&self, branch: &RevSpec) -> Result<()>
Bound form of Git’s merge_squash (with dir pre-bound).
Sourcepub async fn merge_commit(&self, spec: MergeCommit) -> Result<()>
pub async fn merge_commit(&self, spec: MergeCommit) -> Result<()>
Bound form of Git’s merge_commit (with dir pre-bound).
Sourcepub async fn merge_no_commit(&self, spec: MergeNoCommit) -> Result<()>
pub async fn merge_no_commit(&self, spec: MergeNoCommit) -> Result<()>
Bound form of Git’s merge_no_commit (with dir pre-bound).
Sourcepub async fn merge_abort(&self) -> Result<()>
pub async fn merge_abort(&self) -> Result<()>
Bound form of Git’s merge_abort (with dir pre-bound).
Sourcepub async fn merge_continue(&self) -> Result<()>
pub async fn merge_continue(&self) -> Result<()>
Bound form of Git’s merge_continue (with dir pre-bound).
Sourcepub async fn reset_merge(&self) -> Result<()>
pub async fn reset_merge(&self) -> Result<()>
Bound form of Git’s reset_merge (with dir pre-bound).
Sourcepub async fn reset_hard(&self, rev: &RevSpec) -> Result<()>
pub async fn reset_hard(&self, rev: &RevSpec) -> Result<()>
Bound form of Git’s reset_hard (with dir pre-bound).
Sourcepub async fn rebase(&self, onto: &RevSpec) -> Result<()>
pub async fn rebase(&self, onto: &RevSpec) -> Result<()>
Bound form of Git’s rebase (with dir pre-bound).
Sourcepub async fn rebase_abort(&self) -> Result<()>
pub async fn rebase_abort(&self) -> Result<()>
Bound form of Git’s rebase_abort (with dir pre-bound).
Sourcepub async fn am_continue(&self) -> Result<()>
pub async fn am_continue(&self) -> Result<()>
Bound form of Git’s am_continue (with dir pre-bound).
Sourcepub async fn rebase_continue(&self) -> Result<()>
pub async fn rebase_continue(&self) -> Result<()>
Bound form of Git’s rebase_continue (with dir pre-bound).
Sourcepub async fn stash_push(&self, spec: StashPush) -> Result<()>
pub async fn stash_push(&self, spec: StashPush) -> Result<()>
Bound form of Git’s stash_push (with dir pre-bound).
Sourcepub async fn stash_pop(&self) -> Result<()>
pub async fn stash_pop(&self) -> Result<()>
Bound form of Git’s stash_pop (with dir pre-bound).
Sourcepub async fn switch_with_stash(&self, target: &CheckoutTarget) -> Result<()>
pub async fn switch_with_stash(&self, target: &CheckoutTarget) -> Result<()>
Bound form of Git’s switch_with_stash (with dir pre-bound).
Sourcepub async fn worktree_list(&self) -> Result<Vec<Worktree>>
pub async fn worktree_list(&self) -> Result<Vec<Worktree>>
Bound form of Git’s worktree_list (with dir pre-bound).
Sourcepub async fn worktree_add(&self, spec: WorktreeAdd) -> Result<()>
pub async fn worktree_add(&self, spec: WorktreeAdd) -> Result<()>
Bound form of Git’s worktree_add (with dir pre-bound).
Sourcepub async fn worktree_remove(&self, spec: WorktreeRemove) -> Result<()>
pub async fn worktree_remove(&self, spec: WorktreeRemove) -> Result<()>
Bound form of Git’s worktree_remove (with dir pre-bound).
Sourcepub async fn worktree_move(&self, from: &Path, to: &Path) -> Result<()>
pub async fn worktree_move(&self, from: &Path, to: &Path) -> Result<()>
Bound form of Git’s worktree_move (with dir pre-bound).
Sourcepub async fn worktree_prune(&self) -> Result<()>
pub async fn worktree_prune(&self) -> Result<()>
Bound form of Git’s worktree_prune (with dir pre-bound).
Sourcepub async fn tag_create(
&self,
name: &RefName,
rev: Option<RevSpec>,
) -> Result<()>
pub async fn tag_create( &self, name: &RefName, rev: Option<RevSpec>, ) -> Result<()>
Bound form of Git’s tag_create (with dir pre-bound).
Sourcepub async fn tag_create_annotated(&self, spec: AnnotatedTag) -> Result<()>
pub async fn tag_create_annotated(&self, spec: AnnotatedTag) -> Result<()>
Bound form of Git’s tag_create_annotated (with dir pre-bound).
Sourcepub async fn tag_list(&self) -> Result<Vec<String>>
pub async fn tag_list(&self) -> Result<Vec<String>>
Bound form of Git’s tag_list (with dir pre-bound).
Sourcepub async fn tag_delete(&self, name: &RefName) -> Result<()>
pub async fn tag_delete(&self, name: &RefName) -> Result<()>
Bound form of Git’s tag_delete (with dir pre-bound).
Sourcepub async fn show_file(&self, rev: &RevSpec, path: &str) -> Result<String>
pub async fn show_file(&self, rev: &RevSpec, path: &str) -> Result<String>
Bound form of Git’s show_file (with dir pre-bound).
Sourcepub async fn config_get(&self, key: &str) -> Result<Option<String>>
pub async fn config_get(&self, key: &str) -> Result<Option<String>>
Bound form of Git’s config_get (with dir pre-bound).
Sourcepub async fn config_set(&self, key: &str, value: &str) -> Result<()>
pub async fn config_set(&self, key: &str, value: &str) -> Result<()>
Bound form of Git’s config_set (with dir pre-bound).
Sourcepub async fn remote_add(&self, name: &str, url: &str) -> Result<()>
pub async fn remote_add(&self, name: &str, url: &str) -> Result<()>
Bound form of Git’s remote_add (with dir pre-bound).
Sourcepub async fn remote_set_url(&self, name: &str, url: &str) -> Result<()>
pub async fn remote_set_url(&self, name: &str, url: &str) -> Result<()>
Bound form of Git’s remote_set_url (with dir pre-bound).
Sourcepub async fn blame(
&self,
path: &str,
rev: Option<RevSpec>,
) -> Result<Vec<BlameLine>>
pub async fn blame( &self, path: &str, rev: Option<RevSpec>, ) -> Result<Vec<BlameLine>>
Bound form of Git’s blame (with dir pre-bound).
Sourcepub async fn cherry_pick(&self, rev: &RevSpec) -> Result<()>
pub async fn cherry_pick(&self, rev: &RevSpec) -> Result<()>
Bound form of Git’s cherry_pick (with dir pre-bound).
Sourcepub async fn revert(&self, rev: &RevSpec) -> Result<()>
pub async fn revert(&self, rev: &RevSpec) -> Result<()>
Bound form of Git’s revert (with dir pre-bound).
Sourcepub async fn rebase_skip(&self) -> Result<()>
pub async fn rebase_skip(&self) -> Result<()>
Bound form of Git’s rebase_skip (with dir pre-bound).
Sourcepub async fn cherry_pick_abort(&self) -> Result<()>
pub async fn cherry_pick_abort(&self) -> Result<()>
Bound form of Git’s cherry_pick_abort (with dir pre-bound).
Sourcepub async fn cherry_pick_continue(&self) -> Result<()>
pub async fn cherry_pick_continue(&self) -> Result<()>
Bound form of Git’s cherry_pick_continue (with dir pre-bound).
Sourcepub async fn revert_abort(&self) -> Result<()>
pub async fn revert_abort(&self) -> Result<()>
Bound form of Git’s revert_abort (with dir pre-bound).
Sourcepub async fn revert_continue(&self) -> Result<()>
pub async fn revert_continue(&self) -> Result<()>
Bound form of Git’s revert_continue (with dir pre-bound).
Sourcepub async fn bisect_reset(&self) -> Result<()>
pub async fn bisect_reset(&self) -> Result<()>
Bound form of Git’s bisect_reset (with dir pre-bound).