From 7a662e896bcd391265477e304d7af6e5d2ca1deb Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 4 Jul 2005 16:49:37 -0700 Subject: 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 17995c3..8250063 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) { -- cgit v0.10.2-6-g49f6