pub struct AsyncGitOperations;
Expand description
Async Git operations for parallel execution
Implementations§
Source§impl AsyncGitOperations
impl AsyncGitOperations
Sourcepub async fn run(args: &[&str]) -> Result<String>
pub async fn run(args: &[&str]) -> Result<String>
Execute a git command asynchronously and return stdout as String
Sourcepub async fn run_status(args: &[&str]) -> Result<()>
pub async fn run_status(args: &[&str]) -> Result<()>
Execute a git command asynchronously and return success status
Sourcepub async fn current_branch() -> Result<String>
pub async fn current_branch() -> Result<String>
Get current branch name
Sourcepub async fn commit_exists(commit: &str) -> Result<bool>
pub async fn commit_exists(commit: &str) -> Result<bool>
Check if a commit exists
Sourcepub async fn short_hash(commit: &str) -> Result<String>
pub async fn short_hash(commit: &str) -> Result<String>
Get short commit hash
Sourcepub async fn upstream_branch() -> Result<String>
pub async fn upstream_branch() -> Result<String>
Get upstream branch for current branch
Sourcepub async fn ahead_behind_counts() -> Result<(u32, u32)>
pub async fn ahead_behind_counts() -> Result<(u32, u32)>
Get ahead/behind counts compared to upstream
Sourcepub async fn branch_info_parallel() -> Result<(String, Option<String>, u32, u32)>
pub async fn branch_info_parallel() -> Result<(String, Option<String>, u32, u32)>
Get branch information optimized for parallel execution
Sourcepub async fn local_branches() -> Result<Vec<String>>
pub async fn local_branches() -> Result<Vec<String>>
Get all local branches
Sourcepub async fn recent_branches(limit: Option<usize>) -> Result<Vec<String>>
pub async fn recent_branches(limit: Option<usize>) -> Result<Vec<String>>
Get recent branches sorted by commit date
Sourcepub async fn merged_branches() -> Result<Vec<String>>
pub async fn merged_branches() -> Result<Vec<String>>
Get merged branches
Sourcepub async fn is_working_directory_clean() -> Result<bool>
pub async fn is_working_directory_clean() -> Result<bool>
Check if working directory is clean
Sourcepub async fn staged_files() -> Result<Vec<String>>
pub async fn staged_files() -> Result<Vec<String>>
Get staged files
Sourcepub async fn get_recent_activity_timeline(limit: usize) -> Result<Vec<String>>
pub async fn get_recent_activity_timeline(limit: usize) -> Result<Vec<String>>
Get recent activity timeline
Sourcepub async fn check_github_pr_status() -> Result<Option<String>>
pub async fn check_github_pr_status() -> Result<Option<String>>
Check GitHub PR status using external gh command
Auto Trait Implementations§
impl Freeze for AsyncGitOperations
impl RefUnwindSafe for AsyncGitOperations
impl Send for AsyncGitOperations
impl Sync for AsyncGitOperations
impl Unpin for AsyncGitOperations
impl UnwindSafe for AsyncGitOperations
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> 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