Code

Move "get_ack()" to common git_connect functions
[git.git] / rev-list.c
index 17995c34c4eae779caa36e525e9ffb72e22d87f3..0d3c7741a59254f62a135a3bd749e38e1b8dfe71 100644 (file)
@@ -462,11 +462,11 @@ int main(int argc, char **argv)
                        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;
                }
@@ -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) {