Denton Liu <liu.denton@xxxxxxxxx> writes: > This does not happen because at the top of diff_get_merge_base(), we > have > > for (i = 0; i < revs->pending.nr; i++) { > struct object *obj = revs->pending.objects[i].item; > if (obj->flags) > die(_("--merge-base does not work with ranges")); > if (obj->type != OBJ_COMMIT) > die(_("--merge-base only works with commits")); > } > > which ensures that we don't accept any ranges at all. I think we should lose that loop, or at least the first test. If we are not removing the support for "A..B" notation and still accept "diff A..B" happily, not accepting "diff --merge-base A..B" would appear inconsistent to the users. The same applies to "A...B". Thanks.