Merge branch 'pw/am-signoff' into next
[gitweb.git] / builtin / rev-list.c
index e8f50489038644ef7a6dc0d217563c65fa9d6083..95b4128250c850eb130fbdfea2407bad819a85b8 100644 (file)
@@ -352,7 +352,8 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix)
 
        if ((!revs.commits && reflog_walk_empty(revs.reflog_info) &&
             (!(revs.tag_objects || revs.tree_objects || revs.blob_objects) &&
-             !revs.pending.nr)) ||
+             !revs.pending.nr) &&
+            !revs.rev_input_given) ||
            revs.diff)
                usage(rev_list_usage);