Skip to content

fix merge tool entry not visible in the context menu#930

Merged
Murmele merged 3 commits intomasterfrom
fix_merge_tool
Jan 21, 2026
Merged

fix merge tool entry not visible in the context menu#930
Murmele merged 3 commits intomasterfrom
fix_merge_tool

Conversation

@Murmele
Copy link
Owner

@Murmele Murmele commented Jan 18, 2026

Reason: When we have a conflict it means it is against the index and previously it was skipped then, which is not correct

fixes #929

Reason: When we have a conflict it means it is against the index and previously it was skipped then, which is not correct
@Murmele
Copy link
Owner Author

Murmele commented Jan 18, 2026

@AHSauge Sorry for disturbing. Could you have a look on it?

Copy link
Contributor

@AHSauge AHSauge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from lacking a comment, this seems reasonable to me.

git::Blob base = repo.lookupBlob(conflict.ancestor);
return new MergeTool(path, local, remote, base, parent);
} else {
return nullptr;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this is correct, but for readability it would be useful to add a comment here. My one minute look at the code tells me this probably has something to do with not adding the merge tool if workdir is involved

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes exactly. In FileContextMenu::FileContextMenu ExternalTool::create() will be called twice.

  • If it is a normal commit:
    • Diff from that commit to another commit (Diff Tool)
    • Diff from that commit to local changes (Diff Tool)
  • If workdir changes are shown
    • We have only one diff, which might be also a conflicted diff where we wanna use the merge tool (Diff Tool or Merge Tool)

@AHSauge
Copy link
Contributor

AHSauge commented Jan 18, 2026

@AHSauge Sorry for disturbing. Could you have a look on it?

No trouble at all. Happy to help! Feel free to send more my way if needed. I really don't mind it.

@Murmele
Copy link
Owner Author

Murmele commented Jan 18, 2026

@AHSauge Sorry for disturbing. Could you have a look on it?

No trouble at all. Happy to help! Feel free to send more my way if needed. I really don't mind it.

Thank you!

@Murmele Murmele merged commit 5b2b07b into master Jan 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Merge Tool selection broken

2 participants