diff --git a/rev-list.c b/rev-list.c
index 17995c34c4eae779caa36e525e9ffb72e22d87f3..0d3c7741a59254f62a135a3bd749e38e1b8dfe71 100644 (file)
--- a/rev-list.c
+++ b/rev-list.c
limited = 1;
continue;
}
- if (!strncmp(arg, "--merge-order", 13)) {
+ if (!strcmp(arg, "--merge-order")) {
merge_order = 1;
continue;
}
- if (!strncmp(arg, "--show-breaks", 13)) {
+ if (!strcmp(arg, "--show-breaks")) {
show_breaks = 1;
continue;
}
commit = get_commit_reference(arg, flags);
if (!commit)
continue;
- commit_list_insert(commit, &list);
+ insert_by_date(&list, commit);
}
if (!merge_order) {