fix(finish): Use the start point branch when finishing#76
fix(finish): Use the start point branch when finishing#76dermojo wants to merge 1 commit intogittower:mainfrom
Conversation
When finishing a branch, check the (stored) start point used to create the branch. If it differs from the configured start point, merge back to this branch instead. This ensures that e.g. creating releases from another branch works as expected. Resolves gittower#71 Refs gittower#36
|
Thanks for the PR and for the detailed discussion in #71 — this is a real workflow need and we want to support it properly. That said, we'd like to think this through a bit more before merging. As discussed in #71, we want to explicitly differentiate between the starting point (where a branch is created from) and the parent (where it merges back into). Your fix uses the stored start point as the merge target, which works for your use case but may not be the right default for all scenarios (e.g., stacked feature branches where finish should target the configured parent, not the branch it was created from). We're leaning toward introducing an explicit We'll keep this PR open as a reference while we work on the design. Appreciate the contribution and the patience! |
I think a better name for the override parameter would be |
|
Thanks for the feedback, your time investment in this is appreciated! I like the proposed solution :) |
When finishing a branch, check the (stored) start point used to create the branch. If it differs from the configured start point, merge back to this branch instead. This ensures that e.g. creating releases from another branch works as expected.
Resolves #71
Refs #36
Remarks
Review focus: