diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-07-06 19:08:55 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-07-06 19:09:29 -0700 |
commit | 5f44324d88a6a6699bc30912b26784ac0ade638d (patch) | |
tree | c37f1a687887fc003ce4d59fd3251201aba64b30 /config.c | |
parent | Merge branch 'ef/maint-win-verify-path' (diff) | |
download | tgif-5f44324d88a6a6699bc30912b26784ac0ade638d.tar.xz |
core: log offset pack data accesses happened
In a workload other than "git log" (without pathspec nor any option that
causes us to inspect trees and blobs), the recency pack order is said to
cause the access jump around quite a bit. Add a hook to allow us observe
how bad it is.
"git config core.logpackaccess /var/tmp/pal.txt" will give you the log
in the specified file.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -569,6 +569,9 @@ 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) |