diff options
author | Derrick Stolee <derrickstolee@github.com> | 2022-08-05 20:58:37 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-08-06 00:13:12 +0300 |
commit | 97e61e0f9cd96f403504ec97cfdf38f238777560 (patch) | |
tree | 2ad031cf850eae3080ada2e74e5aa51ee092048d /cache.h | |
parent | b9342b3fd6308c351f53075c9c4339913b73451f (diff) |
refs: use ref_namespaces for replace refs base
The git_replace_ref_base global is used to store the value of the
GIT_REPLACE_REF_BASE environment variable or the default of
"refs/replace/". This is initialized within setup_git_env().
The ref_namespaces array is a new centralized location for information
such as the ref namespace used for replace refs. Instead of having this
namespace stored in two places, use the ref_namespaces array instead.
For simplicity, create a local git_replace_ref_base variable wherever
the global was previously used.
Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -1008,7 +1008,6 @@ void reset_shared_repository(void); * commands that do not want replace references to be active. */ extern int read_replace_refs; -extern char *git_replace_ref_base; /* * These values are used to help identify parts of a repository to fsync. |