Skip to content

chore: sync worktree scripts with the shared standard - #256

Merged
s2x merged 1 commit into
mainfrom
chore/worktrees-location
Oct 2, 2026
Merged

s2x merged 1 commit into
mainfrom
chore/worktrees-location

Conversation

@s2x

@s2x s2x commented Oct 2, 2026

Copy link
Copy Markdown
Member

Syncs bin/worktree.sh, bin/worktree-done.sh and docs/workflow.md with crazy-goat/.github@2fb6302.

  • bin/worktree.sh: choose the worktree location with --dir <path>, WORKTREES_DIR, or a ../.worktrees/ directory; the old ../<repo>-worktrees/ stays the default. Stricter argument checks. Fixes a silent exit in repos without a compose file and an invalid COMPOSE_PROJECT_NAME for upper-case repo names.
  • bin/worktree-done.sh: finds the worktree by its branch name, never touches the main checkout, refuses ambiguous matches.
  • docs/workflow.md: documents the above; the main checkout is read-only.

bin/worktree.sh takes --dir <path> and WORKTREES_DIR, and uses
../.worktrees/<repo>/ when that directory exists. bin/worktree-done.sh
finds the worktree by its branch, wherever it is. Argument checks are
stricter, and the script no longer exits silently in a repo without a
compose file.
@s2x
s2x merged commit 74660cf into main Oct 2, 2026
18 of 20 checks passed
@s2x
s2x deleted the chore/worktrees-location branch October 2, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant