- if (commit_sort == 1) {
- static const char *date_order_arg = "--date-order";
- vector_push(&vec, &date_order_arg, 0);
- } else if (commit_sort == 2) {
- static const char *topo_order_arg = "--topo-order";
- vector_push(&vec, &topo_order_arg, 0);
- }
+ if (commit_sort == 1)
+ argv_array_push(&rev_argv, "--date-order");
+ else if (commit_sort == 2)
+ argv_array_push(&rev_argv, "--topo-order");