user3739844
user3739844

Reputation: 725

How do I see the diff of a merge commit in IntelliJ IDEA?

In the git window of IntelliJ IDEA, I can see the diffs of a regular commit. But, if the commit is merge commit, nothing happens when I press cmd+D (show diff). How do I see the diff of a merge commit in IntelliJ IDEA?

Upvotes: 8

Views: 1085

Answers (1)

andi5
andi5

Reputation: 1616

To compare a merge commit with one of it parent commits, just select both with ctrl-click and diff them with cmd-D as usual. It might be hard to scroll down to the proper parent though.

It could be that cmd-D on the merge commit would actually show the merge conflicts and how they were resolved respective to the parent commits, but I have not tried. If the merge did not have any conflicts, such a view would be empty, of course.

Upvotes: 1

Related Questions