list-objects: drop name_path entirely
[gitweb.git] / builtin / rev-list.c
index ff84a825ff776abc01087f37782223ee26a1af7a..3d3a2665f1c94841fa78e45ff2d5511c489c0c36 100644 (file)
@@ -42,6 +42,7 @@ static const char rev_list_usage[] =
 "    --abbrev=<n> | --no-abbrev\n"
 "    --abbrev-commit\n"
 "    --left-right\n"
+"    --count\n"
 "  special purpose:\n"
 "    --bisect\n"
 "    --bisect-vars\n"
@@ -177,7 +178,7 @@ static void finish_commit(struct commit *commit, void *data)
 }
 
 static void finish_object(struct object *obj,
-                         const struct name_path *path, const char *name,
+                         struct strbuf *path, const char *name,
                          void *cb_data)
 {
        struct rev_list_info *info = cb_data;
@@ -188,7 +189,7 @@ static void finish_object(struct object *obj,
 }
 
 static void show_object(struct object *obj,
-                       const struct name_path *path, const char *component,
+                       struct strbuf *path, const char *component,
                        void *cb_data)
 {
        struct rev_list_info *info = cb_data;
@@ -355,7 +356,7 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix)
        if (bisect_list)
                revs.limited = 1;
 
-       if (use_bitmap_index) {
+       if (use_bitmap_index && !revs.prune) {
                if (revs.count && !revs.left_right && !revs.cherry_mark) {
                        uint32_t commit_count;
                        if (!prepare_bitmap_walk(&revs)) {