Parse $ARGUMENTS as the number of worktree slots to create. Default to 1 if empty or not a positive integer. Must be 1-4.
N=${ARGUMENTS:-1}
# Validate: must be 1, 2, 3, or 4. Abort if anything else.
Abort if not in a git repo. Abort if working directory is dirty (git status --porcelain is non-empty).
REPO_ROOT=$(git rev-parse --show-toplevel)
REPO_NAME=$(basename "$REPO_ROOT")
Detect layout
Walk up from $REPO_ROOT (max 3 levels) checking each ancestor for bu
[Description truncada. Veja o README completo no GitHub.]