pub fn format_worktree_error(
error: &str,
branch_name: &str,
worktree_path: &Path,
) -> StringExpand description
Get detailed information about worktree creation failure.
Provides suggestions for how to resolve common worktree creation issues. Error messages follow the pattern: what happened → why → how to fix.
§Arguments
error- The error message from the failed git commandbranch_name- The branch that was being createdworktree_path- The path where the worktree was being created
§Returns
A user-friendly error message with suggestions.