Skip to content

Improve upstream squashed commit detection #5818

@ionTea

Description

@ionTea

Version

0.14.3

Operating System

macOS

Distribution Method

dmg (Apple Silicon)

Describe the issue

I really like the addition of stacked PRs, but there seems to be some issue when the base of a stack is merged into master and the rest of the branches on the stack needs to rebase.

I took some screen shots to show what happens.

Here I got a stack with two PRs, and the base has been merged into master
Screenshot 2024-12-12 at 09 30 19

I want to update my stack so the

  1. Merged branch is removed, since it's now part of the base
  2. The remaining PR in the stack is updated so it points to merging into master

So I update my workspace - no issues indicated so far:
Screenshot 2024-12-12 at 09 30 54

But now all of a sudden my remaining PR in the stack has a new commit that wasn't there before, and it somehow conflicts with the version I have on remote?

Screenshot 2024-12-12 at 09 31 26

I don't want to deal with any conflicts, since I know the remote version of this branch was fine, so I reset to remote.

Screenshot 2024-12-12 at 09 39 33

But now my branch has the commit I had from my previous PR, which was integrated?
Screenshot 2024-12-12 at 09 41 02

So I guess I just don't know what to do to handle this? What I did now was that I manually went through each of the commits that were in the old branch and just uncommitted them, so my branch only included the commits you see in my first image. That's what I would expect.

Am I using this feature wrong? How am I supposed to manage stacks when the base is merged?

How to reproduce

See the issue description

Expected behavior

I would expect that the PRs look the same and contain the same commits after a part of the stack is merged

Relevant log output

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingrustPull requests that update Rust code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions