summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-08-15 22:08:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-08-15 22:08:23 (GMT)
commit1689c22c1c328e9135ed51458e9f9a5d224c5057 (patch)
tree774db619c960df03d49743e5f0bf06b34a8dcc0c /cache.h
parenta14a9bfc132f8fe80cca33d14b1acbcda945de13 (diff)
parentda4398d6a03eb2cf857aa63190e9bf60305befd2 (diff)
downloadgit-1689c22c1c328e9135ed51458e9f9a5d224c5057.zip
git-1689c22c1c328e9135ed51458e9f9a5d224c5057.tar.gz
git-1689c22c1c328e9135ed51458e9f9a5d224c5057.tar.bz2
Merge branch 'jk/core-use-replace-refs'
A new configuration variable core.usereplacerefs has been added, primarily to help server installations that want to ignore the replace mechanism altogether. * jk/core-use-replace-refs: add core.usereplacerefs config option check_replace_refs: rename to read_replace_refs check_replace_refs: fix outdated comment
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/cache.h b/cache.h
index 8dc7134..8cf62b5 100644
--- a/cache.h
+++ b/cache.h
@@ -868,11 +868,9 @@ void reset_shared_repository(void);
* 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. As an
- * optimization it is also set to false if replace references have
- * been sought but there were none.
+ * commands that do not want replace references to be active.
*/
-extern int check_replace_refs;
+extern int read_replace_refs;
extern char *git_replace_ref_base;
extern int fsync_object_files;