Skip to content

Conversation

stefanhaller
Copy link
Collaborator

When lazygit detects that all conflicts have been resolved, it puts up a popup asking whether the user wants to continue the merge or rebase. However, it didn't rerender the main view of the conflicted file, so it would still show the conflict markers, which is confusing. Add some logic that updates the main view in this situation, behind the popup.

@stefanhaller stefanhaller added the bug Something isn't working label Oct 8, 2025
Copy link

codacy-production bot commented Oct 8, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
Report missing for 3f300081 100.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (3f30008) Report Missing Report Missing Report Missing
Head commit (5fad3ab) 58146 50554 86.94%

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#4945) 5 5 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Footnotes

  1. Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.

The logic in postRefreshUpdate would only rerender the main view if the context
being updated is the current view. This is not the case when a popup is showing;
but we still want to render the main view in that case, behind the popup. This
happens for example when we refresh the Files scope, we determine that all
conflicts have been resolved and show a popup asking to continue the merge or
rebase, but the postRefreshUpdate of the Files context only happens when the
popup is already showing, so we would still see the conflict markers behind the
popup, which is rather confusing.
@stefanhaller stefanhaller force-pushed the render-main-view-after-refreshing-while-popup-is-showing branch from 429bde6 to 5fad3ab Compare October 9, 2025 07:02
@stefanhaller stefanhaller merged commit fb00584 into master Oct 9, 2025
12 checks passed
@stefanhaller stefanhaller deleted the render-main-view-after-refreshing-while-popup-is-showing branch October 9, 2025 07:04
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

Successfully merging this pull request may close these issues.

1 participant