[git] preserve order of merge commits when necessary
For merge commits that are not different to one of the parents collecting changes requires additional "git log" call in order to get tree hashes. In order to avoid multiple extra git invocations, these calls were bundled together. This led to merge commits appear at the end of the list, which was fine for indexing purposes, but led to problems in other cases, such as branches comparison. This commit introduces a parameter that allows to preserve commits order. Issue was introduced in eed01c21. IDEA-186772 (cherry picked from commit 9bb1be68)
Showing
+160 -93
Please register or sign in to comment