worktrunk icon indicating copy to clipboard operation
worktrunk copied to clipboard

wt step push: no --no-ff flag for manual step-by-step merge workflows

Open worktrunk-bot opened this issue 8 months ago • 2 comments

Summary

wt step push does not support the new --no-ff flag added in #1438. Users doing manual step-by-step workflows (wt step commit && wt step rebase && wt step push) cannot produce merge commits.

Location

  • src/main.rs:270: StepCommand::Push { target } => handle_push(target.as_deref(), "Pushed to", None)
  • The None parameter corresponds to merge_commit_style, which is always None (fast-forward only).

Suggested fix

Add a --no-ff flag to the Push variant in StepCommand and pass it through to handle_push.

worktrunk-bot avatar Mar 17 '26 06:03 worktrunk-bot

let's add this?

max-sixty avatar Mar 17 '26 15:03 max-sixty

Done — #1587 adds --no-ff / --ff flags to wt step push, delegating to handle_no_ff_merge() when set. CI is running.

worktrunk-bot avatar Mar 17 '26 15:03 worktrunk-bot