parse_worktree_add

Function parse_worktree_add 

Source
pub fn parse_worktree_add(
    command: &str,
    cwd: &Path,
) -> Option<(String, Option<String>)>
Expand description

Parse git worktree add command.

Extracts path and optional branch from commands like:

  • git worktree add ../foo-issue-42
  • git worktree add ../foo -b fix/issue-42
  • git worktree add -f /path/to/worktree