summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2013-06-09 05:22:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-06-09 23:07:50 (GMT)
commitb12ca9631f86adc35b0c03fb5b792cd82c288288 (patch)
treef41c4bec41a87c346eeb47962b6957b6fcfb11eb /config.c
parentedca4152560522a431a51fc0a06147fc680b5b18 (diff)
downloadgit-b12ca9631f86adc35b0c03fb5b792cd82c288288.zip
git-b12ca9631f86adc35b0c03fb5b792cd82c288288.tar.gz
git-b12ca9631f86adc35b0c03fb5b792cd82c288288.tar.bz2
core: use env variable instead of config var to turn on logging pack access
5f44324 (core: log offset pack data accesses happened - 2011-07-06) provides a way to observe pack access patterns via a config switch. Setting an environment variable looks more obvious than a config var, especially when you just need to _observe_, and more inline with other tracing knobs we have. Document it as it may be useful for remote troubleshooting. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.c')
-rw-r--r--config.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/config.c b/config.c
index aefd80b..ce074d7 100644
--- a/config.c
+++ b/config.c
@@ -675,9 +675,6 @@ static int git_default_core_config(const char *var, const char *value)
return 0;
}
- if (!strcmp(var, "core.logpackaccess"))
- return git_config_string(&log_pack_access, var, value);
-
if (!strcmp(var, "core.autocrlf")) {
if (value && !strcasecmp(value, "input")) {
if (core_eol == EOL_CRLF)