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>
This commit is contained in:
Elijah Newren
2023-02-24 00:09:33 +00:00
committed by Junio C Hamano
parent 1c02840008
commit cbeab74713
15 changed files with 21 additions and 9 deletions

View File

@ -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;