Re: git merge performance problem..
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:33
Linus Torvalds [off-list ref] writes:
Junio, I think there is something wrong with git-merge. It sometimes takes up to ten seconds, and it's stuck at the git-show-branch --independent "$head" "$@" call. I don't know quite what that thing is even meant to do (we do already know the parents, why do we do something special here?) but even apart from that, the whole thing must be doing something seriously wrong, since it takes so long. Does it check the whole commit history?
The code is to cull redundant parents primarily in octopus and is not strictly necessary. Can I have the $head and $@ (the other merge parents, but in your case you never do an octopus so that would be the other branch head) to see what is going on please? It should not descend down the history all the way but with the recent changes to the object marking/unmarking code it is possible we might have broken something.