Function delete_branch
Source pub async fn delete_branch(
repo_path: PathBuf,
branch_name: String,
) -> Result<(), GitError>
Expand description
Re-exported commit/sync/diff APIs.
Deletes a git branch.
Uses -D to force deletion even if not merged.
§Arguments
repo_path - Path to the git repository root
branch_name - Name of the branch to delete
§Returns
Ok(()) on success.
§Errors
Returns a GitError if the branch delete command fails.