-
-
Notifications
You must be signed in to change notification settings - Fork 580
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
stash apply: report merge conflicts #576
Comments
oh I did not encounter that one yet. but does it put the conflicting files in the correct conflicted state? |
which gitui version are you using? |
I was using 0.11.0. However, I just upgraded to 0.12.0 and it still occurs. |
0.12 should tell you that the repo is in a conflicting state though 🤔 |
It just shows |
without having reproduced this: I will tackle c) in this issue |
@josmith42 ok I am having trouble reproducing this. applying that results in a conflict actually is prevented |
so I added unittests and it seems to me that the conflict state can only be achieved right now if applying the stash outside of gitui. I used this issue to improve on the visualisation of files in conflict state: if you manage to achieve gitui putting files into conflicted state please provide me with a repro and feel free to reopen the issue |
OK, here are some steps to repro:
So after #578, gitui does show the files as conflicted, but it still doesn't prevent the confilct from occurring. To me, showing the confilct is sufficient, but if if you want gitui to prevent the conflict in the first place, it is not doing that in this case. |
Github won't allow me to reopen this issue, so please reopen the issue if you feel it should be based on what I reported above. |
ha! committing the changes was the step I missed |
comparing this again against regular |
superseded by #580 |
Is your feature request related to a problem? Please describe.
When applying a stash that will result in conflict (e.g., the working copy has changed), gitui does not report the error message. This makes it difficult to see that a conflict occurred.
Describe the solution you'd like
A dialog box with the error message. (e.g.: "CONFLICT (content): Merge conflict in [filename]", maybe with an OK button and an Abort button.
Describe alternatives you've considered
The error message could also be in the status bar.
Additional context
If there is already error handling for stashes, maybe it could be reused.
The text was updated successfully, but these errors were encountered: