Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

starting and aborting a merge with conflicts results in deletion of previously uncommitted changes #214

Open
st-patrick opened this issue Jun 12, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@st-patrick
Copy link

Describe the bug
I had uncommitted changes in my project and started a merge.
When the merge resulted in a conflict and there was no convenient tool available, I aborted the merge via abort button in the GUI.
All my changes, inculding the merge-unrelated previous uncommitted changes, have been deleted

To Reproduce
Steps to reproduce the behavior:

  1. make any changes to any file and save
  2. check to see that gitnuro shows "uncommitted changes"
  3. find some branch that will result in conflict when merging or create a conflict
  4. merge that branch
  5. abort
  6. notice how your changes form step 1 are forever gone

Expected behavior
restore previously uncommitted changes when aborting

Desktop (please complete the following information):

  • OS: macOS Sonoma
  • Version 1.3.1
@st-patrick st-patrick added the bug Something isn't working label Jun 12, 2024
@JetpackDuba
Copy link
Owner

Thanks for your report! I'm sorry you lost your uncommited changes, as you mentioned, that's something that Gitnuro should prevent.

Thinking a bit about it, I'm considering creating some kind of auto-stash (without taking away the changes from the workspace) before merging and re-apply it when the merge is aborted, but I'll have to think about possible alternatives.

@JetpackDuba JetpackDuba added this to the 1.5.0 milestone Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants