diff options
Diffstat (limited to 'object-file.c')
| -rw-r--r-- | object-file.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/object-file.c b/object-file.c index 939865c1ae..8fab8dbe80 100644 --- a/object-file.c +++ b/object-file.c @@ -6,8 +6,10 @@ * This handles basic git object files - packing, unpacking, * creation etc. */ -#include "cache.h" +#include "git-compat-util.h" +#include "alloc.h" #include "config.h" +#include "hex.h" #include "string-list.h" #include "lockfile.h" #include "delta.h" @@ -2644,7 +2646,8 @@ int for_each_loose_object(each_loose_object_fn cb, void *data, return 0; } -static int append_loose_object(const struct object_id *oid, const char *path, +static int append_loose_object(const struct object_id *oid, + const char *path UNUSED, void *data) { oidtree_insert(data, oid); |
