pub fn create_worktree( bare: &Path, dest: &Path, branch: &str, base_branch: &str, branch_exists: bool, ) -> Result<()>