diff options
Diffstat (limited to 'rev-list.c')
-rw-r--r-- | rev-list.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rev-list.c b/rev-list.c index 8020d974f2..d0609666a1 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); |