Skip to content

Add a 'switch' command for changing core and contrib module branches.#32

Merged
amateescu merged 1 commit into
mainfrom
add-switch-command
Jul 17, 2026
Merged

Add a 'switch' command for changing core and contrib module branches.#32
amateescu merged 1 commit into
mainfrom
add-switch-command

Conversation

@amateescu

Copy link
Copy Markdown
Owner

Fixes #23.

  • New host command: ddev switch core 11.x runs git switch + ddev composer update; ddev switch token 2.0.x switches the module's branch and updates its Composer constraint in one step.
  • Runs ddev mutagen sync after the branch switch so the container sees the new files before Composer runs (no-op without Mutagen)
  • Git worktree checkouts (.git file instead of directory) are accepted everywhere: the module commands, the core path of switch, and the composer plugin's checkout detection. remove-module now also runs its dirty-check on worktrees and prunes the main repo's worktree entry after deletion.

@amateescu
amateescu merged commit 66f4c0e into main Jul 17, 2026
2 checks passed
@amateescu
amateescu deleted the add-switch-command branch July 17, 2026 15:06
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.

Provide instructions or recommendations for switching core branches

1 participant