Skip to content

[stashing] successfully popping a stash with conflicts doesn't drop the stash #7383

Closed

Description

@outofambit

Repro steps

  1. Make a stash that touches a file
  2. Update that in working directory and commit
  3. Pop stash

Note that there will be conflicts and the stash content will be placed in the working directory, but Desktop will continue to show that there is a stash entry. This is because of underlying git behavior aka desktop shows the stash because pop didn't actually remove the stash.

Screen Shot 2019-04-22 at 11 10 12 AM

You'll notice in this screenshot that while a stash has been popped (and resulted in conflicts) it still exists in the UI. We should ensure the stash is dropped as long as the pop is successful. (This doesn't include the case where popping the stash fails due to conflicts.)

Activity

  1. added
    bug
    on Apr 22, 2019
  2. added this to the 1.7.0 milestone on Apr 22, 2019
  3. self-assigned this
    on Apr 22, 2019
  4. added
    priority-2
    on Apr 22, 2019
  5. tierninho commented on Apr 23, 2019

    @tierninho
    Contributor

    We should consider this for feature for dealing with a stash merge conflict as it would give the user a cleaner option.

    If you stash some work, leave it there for a while, and continue on the branch from which you stashed the work, you may have a problem reapplying the work. If the apply tries to modify a file that you’ve since modified, you’ll get a merge conflict and will have to try to resolve it. If you want an easier way to test the stashed changes again, you can run git stash branch, which creates a new branch for you, checks out the commit you were on when you stashed your work, reapplies your work there, and then drops the stash if it applies successfully.

  6. outofambit commented on Apr 23, 2019

    @outofambit
    ContributorAuthor

    @tierninho yes absolutely!

  7. added
    epic:stashing
    on Apr 23, 2019
  8. dyna-dot commented on May 11, 2019

    @dyna-dot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugepic:stashingpriority-2

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions