Skip to content

Commit

Permalink
git-rev-list: make sure the output is sorted by recency
Browse files Browse the repository at this point in the history
We didn't sort the refs by date, so if you had multiple refs, the end
result would not be properly sorted.
  • Loading branch information
Linus Torvalds committed Jul 4, 2005
1 parent 7620d39 commit 7a662e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rev-list.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7a662e8

Please sign in to comment.