-
Notifications
You must be signed in to change notification settings - Fork 209
[Feature Request] Popup for merge conflicts #1210
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
Comments
Thanks for the quick response - Sorry, I don't think my request was clear. I have to already know that "Merge in progress" means I need to navigate to LOCAL CHANGES and start addressing the conflicts there. My request is that when a conflict is detected, a dialog popping up to indicate there is a conflict would help new users catch it. Code wise, something like: |
Just managed to mock up the behaviour if it helps illustrate? Dispatcher.UIThread.Invoke(() =>
{
if((visibleUnstaged.Count > 0) && (hasConflict))
{
_repo.RefreshBranches();
_repo.RefreshCommits();
_repo.SelectedViewIndex = 1;
selectedUnstaged.Add(visibleUnstaged[0]);
}
_isLoadingData = true;
HasUnsolvedConflicts = hasConflict;
VisibleUnstaged = visibleUnstaged;
VisibleStaged = visibleStaged;
Unstaged = unstaged;
Staged = staged;
SelectedUnstaged = selectedUnstaged;
SelectedStaged = selectedStaged;
_isLoadingData = false;
UpdateInProgressState();
UpdateDetail();
}); Now after I open the repository and if there's a conflict causing a "merge in progress" OR I try perform a merge and a conflict causes a merge in progress", I'm immediately directed to the views used to to deal with the conflicts: |
As per sourcegit-scm#1210. Included conflict popup + switched focus for immediate conflict handling.
As you said, this problem will almost only trouble new users. For users who are already familiar with this app or other similar software like Moreover, for the Another example is that when we run Therefore, I think the key to the problem is to make it easier for users to notice that the |
…re is an in-progress operation (#1210) Signed-off-by: leo <[email protected]>
Ah, I understand and can see how my proposal is excessive, I like the icon to indicate action pending - seems like an elegant solution. Just thinking out loud, how about keeping the pop-up (not the view switch portion, I see how that's unappealing now) but changing the messaging to "local changes pending review" but have a "Don't show this again" radio button to disable it for future launches? One question I have about the code though as I'm not very familiar with the project and would like to get a better understanding - would checking for visibleUnstaged changes and hasConflicts not restrict the action to show the popup only when there are conflicting files? If it's an empty commit pending, I wouldn't expect there to be any visibleUnstaged changes? Meaning the view wouldn't switch and pop up wouldn't appear. |
When there's an empty commit need to be confirmed, you still need to go to |
Clipchamp.mp4 |
OK I understand now thank you, appreciate you taking the time to explain and for addressing the original issue. |
Hello,
First of all, thanks for such a great tool!
I have a minor suggestion that might be good for first time users.
FYI I'm using Windows 10.
When in the HISTORY view and trying to merge changes between branches which contain conflicts that can't be resolved automatically, the details show that a the merge is in progress, indicating the merge is incomplete.
However for new users, its not immediately obvious that there are unresolved conflicts and that they need to go to LOCAL CHANGES and handle conflicts.
Suggestion is:
On detection of unresolved conflicts, to produce a pop-up/dialog that indicates conflicts exist which haven't been resolved and offers the user a button to launch their external merge tool on the files affected.
Thanks for any consideration!
Louis
The text was updated successfully, but these errors were encountered: