pub fn list() -> Result<Vec<Worktree>, WorktreeError>
List all git worktrees in the current repository.
Returns an error if the worktrees cannot be listed.