clone: keep --reference even with -l -s
[gitweb.git] / rev-list.c
index 13015026276029bc213972cae234981ee14b06b7..a8fe83c5d805ea8944a07be3832977487b41080d 100644 (file)
@@ -5,11 +5,12 @@
 #include "tree.h"
 #include "blob.h"
 #include "tree-walk.h"
+#include "diff.h"
 #include "revision.h"
 
-/* bits #0-5 in revision.h */
+/* bits #0-15 in revision.h */
 
-#define COUNTED                (1u<<6)
+#define COUNTED                (1u<<16)
 
 static const char rev_list_usage[] =
 "git-rev-list [OPTION] <commit-id>... [ -- paths... ]\n"
@@ -370,6 +371,8 @@ int main(int argc, const char **argv)
 
        save_commit_buffer = verbose_header;
        track_object_refs = 0;
+       if (bisect_list)
+               revs.limited = 1;
 
        prepare_revision_walk(&revs);
        if (revs.tree_objects)