sha1_name: cache readdir(3) results in find_short_object_filename()
[gitweb.git] / sha1_file.c
index 59a4ed2ed32336b41ab8f3b1d4aca30f045aa084..5e0ee2b68bcf50611a36edaf218bc89446303278 100644 (file)
@@ -3735,12 +3735,12 @@ void assert_sha1_type(const unsigned char *sha1, enum object_type expect)
                    typename(expect));
 }
 
-static int for_each_file_in_obj_subdir(int subdir_nr,
-                                      struct strbuf *path,
-                                      each_loose_object_fn obj_cb,
-                                      each_loose_cruft_fn cruft_cb,
-                                      each_loose_subdir_fn subdir_cb,
-                                      void *data)
+int for_each_file_in_obj_subdir(int subdir_nr,
+                               struct strbuf *path,
+                               each_loose_object_fn obj_cb,
+                               each_loose_cruft_fn cruft_cb,
+                               each_loose_subdir_fn subdir_cb,
+                               void *data)
 {
        size_t baselen = path->len;
        DIR *dir = opendir(path->buf);