fetch: refactor calculation of remote list
[gitweb.git] / cache.h
diff --git a/cache.h b/cache.h
index c76f2e91d62b68279beae00d9888cae6fcb82694..69800721324d7e437e8be78e4ffb54a6271c5755 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -1727,6 +1727,14 @@ struct object_info {
 #define OBJECT_INFO_QUICK 8
 extern int sha1_object_info_extended(const unsigned char *, struct object_info *, unsigned flags);
 
+/*
+ * Set this to 0 to prevent sha1_object_info_extended() from fetching missing
+ * blobs. This has a difference only if extensions.partialClone is set.
+ *
+ * Its default value is 1.
+ */
+extern int fetch_if_missing;
+
 /* Dumb servers support */
 extern int update_server_info(int);