module Git::Commands::Worktree

Implements β€˜git worktree` subcommands for managing multiple working trees

Split into subclasses because each subcommand has a distinct call shape and option set:

Management subcommands ({Add}, {Lock}, {Move}, {Prune}, {Remove}, {Repair}, {Unlock}) inherit from {Worktree::ManagementBase}, which unconditionally unsets β€˜GIT_INDEX_FILE` in the subprocess environment. Git worktrees maintain their own index files; leaving `GIT_INDEX_FILE` set causes silent corruption of both the main and the linked worktree indexes.

@see git-scm.com/docs/git-worktree git-worktree documentation

@api private