Skip to main content

stage_all

Function stage_all 

Source
pub async fn stage_all(repo_path: PathBuf) -> Result<(), GitError>
Expand description

Re-exported commit/sync/diff APIs. Stages all changes in the repository or worktree.

§Arguments

  • repo_path - Path to the git repository or worktree

§Returns

Ok(()) on success.

§Errors

Returns a GitError if git add -A fails.