diff options
author | Elijah Newren <newren@gmail.com> | 2023-02-24 01:09:33 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-02-24 02:25:30 +0100 |
commit | cbeab74713b6a97dfe6cf9e3bd9dbf7c68ea4e7b (patch) | |
tree | 80d593fd90c17d94268e187ed3e241af995d4957 /replace-object.h | |
parent | object-store.h: move struct object_info from cache.h (diff) | |
download | git-cbeab74713b6a97dfe6cf9e3bd9dbf7c68ea4e7b.tar.xz git-cbeab74713b6a97dfe6cf9e3bd9dbf7c68ea4e7b.zip |
replace-object.h: move read_replace_refs declaration from cache.h to here
Adjust several files to be more explicit about their dependency on
replace-objects to accommodate this change.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'replace-object.h')
-rw-r--r-- | replace-object.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/replace-object.h b/replace-object.h index 3c92ae9461..500482b02b 100644 --- a/replace-object.h +++ b/replace-object.h @@ -1,11 +1,18 @@ #ifndef REPLACE_OBJECT_H #define REPLACE_OBJECT_H -#include "cache.h" #include "oidmap.h" #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; |