path: root/config.c
diff options
authorJunio C Hamano <>2011-07-07 02:08:55 (GMT)
committerJunio C Hamano <>2011-07-07 02:09:29 (GMT)
commit5f44324d88a6a6699bc30912b26784ac0ade638d (patch)
treec37f1a687887fc003ce4d59fd3251201aba64b30 /config.c
parent033c2dc4364042b9e6dbd44e82e1974f78a72567 (diff)
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 <>
Diffstat (limited to 'config.c')
1 files changed, 3 insertions, 0 deletions
diff --git a/config.c b/config.c
index e0b3b80..5ef3f39 100644
--- a/config.c
+++ b/config.c
@@ -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)