aboutsummaryrefslogtreecommitdiffstats
path: root/replace-object.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-03-17 14:03:08 -0700
committerJunio C Hamano <gitster@pobox.com>2023-03-17 14:03:09 -0700
commit88cc8ed8bc7d4bc9521b426e95ae2a38d3aec13a (patch)
tree856c32df7cde0ad5322804cddddc5ab09d3128e6 /replace-object.h
parentMerge branch 'en/dir-api-cleanup' (diff)
parentdiff.h: remove unnecessary include of object.h (diff)
downloadgit-88cc8ed8bc7d4bc9521b426e95ae2a38d3aec13a.tar.gz
git-88cc8ed8bc7d4bc9521b426e95ae2a38d3aec13a.zip
Merge branch 'en/header-cleanup'
Code clean-up to clarify the rule that "git-compat-util.h" must be the first to be included. * en/header-cleanup: diff.h: remove unnecessary include of object.h Remove unnecessary includes of builtin.h treewide: replace cache.h with more direct headers, where possible replace-object.h: move read_replace_refs declaration from cache.h to here object-store.h: move struct object_info from cache.h dir.h: refactor to no longer need to include cache.h object.h: stop depending on cache.h; make cache.h depend on object.h ident.h: move ident-related declarations out of cache.h pretty.h: move has_non_ascii() declaration from commit.h cache.h: remove dependence on hex.h; make other files include it explicitly hex.h: move some hex-related declarations from cache.h hash.h: move some oid-related declarations from cache.h alloc.h: move ALLOC_GROW() functions from cache.h treewide: remove unnecessary cache.h includes in source files treewide: remove unnecessary cache.h includes treewide: remove unnecessary git-compat-util.h includes in headers treewide: ensure one of the appropriate headers is sourced first
Diffstat (limited to 'replace-object.h')
-rw-r--r--replace-object.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/replace-object.h b/replace-object.h
index 3fbc32eb7b..500482b02b 100644
--- a/replace-object.h
+++ b/replace-object.h
@@ -5,6 +5,14 @@
#include "repository.h"
#include "object-store.h"
+/*
+ * Do replace refs need to be checked this run? This variable is
+ * initialized to true unless --no-replace-object is used or
+ * $GIT_NO_REPLACE_OBJECTS is set, but is set to false by some
+ * commands that do not want replace references to be active.
+ */
+extern int read_replace_refs;
+
struct replace_object {
struct oidmap_entry original;
struct object_id replacement;