Skip to content

Add a "--pull" option to the switch command - #48

Merged
amateescu merged 1 commit into
mainfrom
switch-pull
Sep 15, 2026
Merged

amateescu merged 1 commit into
mainfrom
switch-pull

Conversation

@amateescu

Copy link
Copy Markdown
Owner

Fixes #47.

  • ddev switch --pull <project> <branch> fetches the branch and fast-forwards it
    before Composer runs. Works for core and for contrib modules.
  • Only a fast-forward. A diverged branch or a dirty working tree is left alone
    with a note, and the Composer step still runs.
  • ddev mr shares the same fast-forward helper: quiet on success, and no longer
    reports a divergence when local changes were the real cause.
  • The host commands show their usage instead of ignoring extra arguments.
    ddev switch core 11.x --pull used to drop the flag without a word.

@amateescu
amateescu merged commit a22b74f into main Sep 15, 2026
2 checks passed
@amateescu
amateescu deleted the switch-pull branch September 15, 2026 09:28
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.

Add "pull" option to switch command

1 participant