summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorLibravatar Christian Couder <chriscool@tuxfamily.org>2009-01-23 10:07:46 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-05-31 17:02:59 -0700
commitdae556bdb1e2ad6fb5eafe82e975bde01029fca9 (patch)
tree40c26f7e70c36888ae3197162d49280eb92c5a4f /cache.h
parentmktag: call "check_sha1_signature" with the replacement sha1 (diff)
downloadtgif-dae556bdb1e2ad6fb5eafe82e975bde01029fca9.tar.xz
environment: add global variable to disable replacement
This new "read_replace_refs" global variable is set to 1 by default, so that replace refs are used by default. But reachability traversal and packing commands ("cmd_fsck", "cmd_prune", "cmd_pack_objects", "upload_pack", "cmd_unpack_objects") set it to 0, as they must work with the original DAG. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 94b12284a2..91ef34071e 100644
--- a/cache.h
+++ b/cache.h
@@ -516,6 +516,7 @@ extern size_t packed_git_window_size;
extern size_t packed_git_limit;
extern size_t delta_base_cache_limit;
extern int auto_crlf;
+extern int read_replace_refs;
extern int fsync_object_files;
extern int core_preload_index;