aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-01-22 23:01:13 -0800
committerJunio C Hamano <gitster@pobox.com>2008-01-22 23:01:13 -0800
commit9cb76b8cdc8ac62a77080595f6443613fd64bab3 (patch)
tree4a212b4c8b39eba51631eb6e59c56c42e7c84cff /cache.h
parentcf558704fb68514a820e3666968967c900e0fd29 (diff)
downloadgit-9cb76b8cdc8ac62a77080595f6443613fd64bab3.tar.gz
git-9cb76b8cdc8ac62a77080595f6443613fd64bab3.tar.xz
lazy index hashing
This delays the hashing of index names until it becomes necessary for the first time. 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 409738ca6..e4aeff07d 100644
--- a/cache.h
+++ b/cache.h
@@ -191,6 +191,7 @@ struct index_state {
struct cache_tree *cache_tree;
time_t timestamp;
void *alloc;
+ unsigned name_hash_initialized : 1;
struct hash_table name_hash;
};