fetch: replace string-list used as a look-up table with a hashmap
[gitweb.git] / builtin / rev-list.c
index 5b07f3f4a2cf6cd5f73f20a930934ca2277c8391..ed0ea7dc5b5bed0c3cb926725b2f70cbf9b93d35 100644 (file)
@@ -493,7 +493,7 @@ 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.rev_input_given) ||
+            !revs.rev_input_given && !revs.read_from_stdin) ||
            revs.diff)
                usage(rev_list_usage);