From: Junio C Hamano Date: Fri, 4 Oct 2019 04:13:08 +0000 (+0900) Subject: Merge branch 'js/diff-rename-force-stable-sort' into next X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e02d8825105097dbe0a1a9aa0a0f4c24d2358fde;p=git Merge branch 'js/diff-rename-force-stable-sort' into next The rename detection logic sorts a list of rename source candidates by similarity to pick the best candidate, which means that a tie between sources with the same similarity is broken by the original location in the original canidate list (which is sorted by path). Force the sorting by similarity done with a stable sort, which is not promised by system supplied qsort(3), to ensure consistent results across platforms. * js/diff-rename-force-stable-sort: diffcore_rename(): use a stable sort Move git_sort(), a stable sort, into into libgit.a --- e02d8825105097dbe0a1a9aa0a0f4c24d2358fde