X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=rev-list.c;h=e41d5a045c3192f4759aa5b2e4881f28f92ed68f;hb=af61c6e008c39ee9f61af33bb48850230f503443;hp=91534dd239173b5821656b40a6e79b3a4ff66cca;hpb=b0d8923ec01fd91b75ab079034f89ced91500157;p=git.git diff --git a/rev-list.c b/rev-list.c index 91534dd2..e41d5a04 100644 --- a/rev-list.c +++ b/rev-list.c @@ -561,6 +561,8 @@ int main(int argc, char **argv) struct commit *exclude = NULL; struct commit *include = NULL; *dotdot = 0; + if (!*next) + next = "HEAD"; exclude = get_commit_reference(arg, UNINTERESTING); include = get_commit_reference(next, 0); if (exclude && include) { @@ -569,7 +571,7 @@ int main(int argc, char **argv) handle_one_commit(include, &list); continue; } - *next = '.'; + *dotdot = '.'; } if (*arg == '^') { flags = UNINTERESTING; @@ -581,6 +583,7 @@ int main(int argc, char **argv) } save_commit_buffer = verbose_header; + track_object_refs = 0; if (!merge_order) { sort_by_date(&list);