Intellij Git Log does not display the parent Merge commits?
Answered
Hi,
When I do "git show <commit>" command in a terminal with a "merge commit", I can see the parent commits such as:
bash> git show bf1700
commit bf1700664618ead15178fb042522962340af4900
Merge: f45db0a 1bc630b
Author: Zemian Deng
But in IntelliJ git log UI, I can't see this "Merge: f45db0a 1bc630b" line?
Thanks,
--Zemian
Please sign in to leave a comment.
Why do you need this line? There is revision graph that shows which commits are parents for the merge. Doesn't it work for you?
I need these parent commits for verification purpose.
It's nice to see UI graph, but it does not print me the parent commits from my merge. If my merge contains large number of commits, I have to scroll the UI to find my parent commits. This is inconvenient. What's the reason to hide them?
> I need these parent commits for verification purpose.
So you just want to see what commits were merged in the Details pane to be able to manually check if all commits you need were merged? Or, maybe, what you really need is to see more details on the diff, e.g. https://youtrack.jetbrains.com/issue/IDEA-148143?
There are plans to add navigation to parent/child - https://youtrack.jetbrains.com/issue/IDEA-130845, and one of the options to do this - https://youtrack.jetbrains.com/issue/IDEA-163867
> I have to scroll the UI to find my parent commits
You could enable IntellijSort and all merged in commits will be listed right below the merge commit. No need to scroll then
Thanks Dmitriy for these info. I think all of these UI feature requests are excellent, and I certainly like to vote them for adding in future of IDEA.
However for now, I want to see one simple information (the parent commits) that I get when I run in command line, and yet IDEA is not displaying for me. There could be 1000 reasons you don't need them, but I need them. I am not asking IDEA to generate these data, but simply show what the built-in GIT would display for a merge commit.
If this is missing in IDEA, should/can I help submit Issue for it?
There is no option to show this, and there are no plans to add it - see https://youtrack.jetbrains.com/issue/IDEA-116056
I think what you need is quite close to the https://youtrack.jetbrains.com/issue/IDEA-163867, so no need to create another request.
Okay, I see IDEA-163867 will display the parent commits if implemented. I will vote there then. Thanks.