diff options
Diffstat (limited to 'object-file.c')
-rw-r--r-- | object-file.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/object-file.c b/object-file.c index 76b22ca75c..8d87720dd5 100644 --- a/object-file.c +++ b/object-file.c @@ -6,10 +6,11 @@ * This handles basic git object files - packing, unpacking, * creation etc. */ -#include "cache.h" +#include "git-compat-util.h" #include "abspath.h" #include "alloc.h" #include "config.h" +#include "convert.h" #include "environment.h" #include "gettext.h" #include "hex.h" @@ -35,7 +36,10 @@ #include "mergesort.h" #include "quote.h" #include "packfile.h" +#include "object-file.h" #include "object-store.h" +#include "oidtree.h" +#include "path.h" #include "promisor-remote.h" #include "setup.h" #include "submodule.h" @@ -951,6 +955,12 @@ void prepare_alt_odb(struct repository *r) r->objects->loaded_alternates = 1; } +int has_alt_odb(struct repository *r) +{ + prepare_alt_odb(r); + return !!r->objects->odb->next; +} + /* Returns 1 if we have successfully freshened the file, 0 otherwise. */ static int freshen_file(const char *fn) { |