module Git::Parsers::Worktree

Parser for git worktree command output

Handles parsing of ‘git worktree list –porcelain` output into structured data objects.

@note Known limitation: git C-quotes a lock or prune reason that contains

unusual characters such as a newline or a non-ASCII byte (see the
`--porcelain` description in the git-worktree documentation). The reason
is returned as git prints it, quotes and escapes included; it is not
unquoted.

## Design Note: Namespace Organization

This parser creates and returns {Git::WorktreeInfo} objects, which live at the top-level ‘Git::` namespace rather than within `Git::Parsers::`. This is intentional:

Keeping Info classes at ‘Git::` improves discoverability and correctly reflects their role as public types rather than parser internals.

@api private