aboutsummaryrefslogtreecommitdiffstats
path: root/object-file.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-11-03 08:41:59 +0100
committerJunio C Hamano <gitster@pobox.com>2025-11-03 12:18:46 -0800
commit0cc12dedef2885dba8cf2635697767d394baf91f (patch)
tree1d2b547e2b899d21834cdc9b12a311e72877bb5c /object-file.h
parentodb: adjust naming to free object sources (diff)
downloadgit-0cc12dedef2885dba8cf2635697767d394baf91f.tar.gz
git-0cc12dedef2885dba8cf2635697767d394baf91f.zip
object-file: move `fetch_if_missing`
The `fetch_if_missing` global variable is declared in "object-file.h" but defined in "odb.c". The variable relates to the whole object database instead of only loose objects, so move the declaration into "odb.h" accordingly. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object-file.h')
-rw-r--r--object-file.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/object-file.h b/object-file.h
index 3fd48dcafb..097e9764be 100644
--- a/object-file.h
+++ b/object-file.h
@@ -7,14 +7,6 @@
struct index_state;
-/*
- * Set this to 0 to prevent odb_read_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;
-
enum {
INDEX_WRITE_OBJECT = (1 << 0),
INDEX_FORMAT_CHECK = (1 << 1),