Skip to main content

delete_branch

Function delete_branch 

Source
pub fn delete_branch(_path: &Path, _branch_name: &str) -> Result<()>
Expand description

Deletes a specified git branch.

§Parameters

  • path: The path to the git repository.
  • branch_name: The name of the branch to delete.

§Returns

  • Ok(()) if the branch was deleted successfully.
  • Err(Error) if an error occurred during branch deletion.