commit: use mergesort() in commit_list_sort_by_date()
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Sat, 31 Mar 2012 22:10:39 +0000 (00:10 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Apr 2012 15:50:54 +0000 (08:50 -0700)
commit46905893b20ac2a044c06a0eecc12425a8405e69
treed27550052a97f2e988b62595caadad7ed41b78c9
parent0db71e0fa94c1857f98890928098e8f4c8ac6f26
commit: use mergesort() in commit_list_sort_by_date()

Replace the insertion sort in commit_list_sort_by_date() with a
call to the generic mergesort function.  This sets the stage for
using commit_list_sort_by_date() for larger lists, as shown in
the next patch.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c