From: Linus Torvalds Date: Mon, 4 Jul 2005 23:49:37 +0000 (-0700) Subject: git-rev-list: make sure the output is sorted by recency X-Git-Tag: v0.99~75 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7a662e896bcd391265477e304d7af6e5d2ca1deb;p=git.git git-rev-list: make sure the output is sorted by recency We didn't sort the refs by date, so if you had multiple refs, the end result would not be properly sorted. --- diff --git a/rev-list.c b/rev-list.c index 17995c34c..825006374 100644 --- a/rev-list.c +++ b/rev-list.c @@ -482,7 +482,7 @@ int main(int argc, char **argv) commit = get_commit_reference(arg, flags); if (!commit) continue; - commit_list_insert(commit, &list); + insert_by_date(&list, commit); } if (!merge_order) {