for_each_*_object: move declarations to object-store.h
[gitweb.git] / pack-bitmap-write.c
index 03e122563d9d5a49c3da5bc79d2cef9ce9ad143b..d977e9bacb19ed766dd0a501b6fbcae800bb4ae0 100644 (file)
@@ -1,4 +1,5 @@
 #include "cache.h"
+#include "object-store.h"
 #include "commit.h"
 #include "tag.h"
 #include "diff.h"
@@ -367,6 +368,10 @@ void bitmap_writer_reuse_bitmaps(struct packing_data *to_pack)
        writer.reused = kh_init_sha1();
        rebuild_existing_bitmaps(bitmap_git, to_pack, writer.reused,
                                 writer.show_progress);
+       /*
+        * NEEDSWORK: rebuild_existing_bitmaps() makes writer.reused reference
+        * some bitmaps in bitmap_git, so we can't free the latter.
+        */
 }
 
 static struct ewah_bitmap *find_reused_bitmap(const unsigned char *sha1)