X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=rev-list.c;h=d0609666a1c5732aa9bc9359d70fd3cf65555c29;hb=36de72aa9dc3b7daf8cf2770c840f39bb0d2ae70;hp=8020d974f2fc84d477920bd10ea450c44fce0a77;hpb=423325a2d24638ddcc82ce47be5e40be550f4507;p=git.git diff --git a/rev-list.c b/rev-list.c index 8020d974..d0609666 100644 --- a/rev-list.c +++ b/rev-list.c @@ -850,7 +850,8 @@ int main(int argc, const char **argv) handle_one_commit(commit, &list); } - if (!list) + if (!list && + (!(tag_objects||tree_objects||blob_objects) && !pending_objects)) usage(rev_list_usage); paths = get_pathspec(prefix, argv + i);