From 7a662e896bcd391265477e304d7af6e5d2ca1deb Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 4 Jul 2005 16:49:37 -0700 Subject: [PATCH] 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. --- rev-list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rev-list.c b/rev-list.c index 17995c34..82500637 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) { -- 2.11.0