commit: convert register_commit_graft to handle arbitrary repositories
[gitweb.git] / unpack-trees.c
index 79fd97074ec238714634de1c9e6144accdc710f3..e3f95cc6f951102f7ce95b0767228c80e98e5619 100644 (file)
@@ -15,6 +15,7 @@
 #include "submodule.h"
 #include "submodule-config.h"
 #include "fsmonitor.h"
+#include "object-store.h"
 #include "fetch-object.h"
 
 /*
@@ -1509,8 +1510,8 @@ static int verify_uptodate_1(const struct cache_entry *ce,
                add_rejected_path(o, error_type, ce->name);
 }
 
-int verify_uptodate(const struct cache_entry *ce,
-                   struct unpack_trees_options *o)
+static int verify_uptodate(const struct cache_entry *ce,
+                          struct unpack_trees_options *o)
 {
        if (!o->skip_sparse_checkout && (ce->ce_flags & CE_NEW_SKIP_WORKTREE))
                return 0;