X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=rev-list.c;h=d0609666a1c5732aa9bc9359d70fd3cf65555c29;hb=c894168631e4b7da66ed3993a4c92380d38599a8;hp=8020d974f2fc84d477920bd10ea450c44fce0a77;hpb=b3cfd939c330211c9812f814094aa1dbe9531bdc;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);