list-objects: drop name_path entirely
[gitweb.git] / builtin / rev-list.c
index ee9e8725bb241ab6f684dc09c01d59388a74930f..3d3a2665f1c94841fa78e45ff2d5511c489c0c36 100644 (file)
@@ -178,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;
@@ -189,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;
@@ -356,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)) {