summaryrefslogtreecommitdiff
path: root/rev-list.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-04 16:49:37 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-04 16:49:37 -0700
commit7a662e896bcd391265477e304d7af6e5d2ca1deb (patch)
treee04f899c02a462f8b042c241b562f5e5c7dfa620 /rev-list.c
parent7620d39fcbff834d00320d295fbdbd9b7006d66a (diff)
downloadgit-7a662e896bcd391265477e304d7af6e5d2ca1deb.tar.gz
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.
Diffstat (limited to 'rev-list.c')
-rw-r--r--rev-list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rev-list.c b/rev-list.c
index 17995c34c4..825006374a 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) {