aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-09-16 00:47:52 -0700
committerJunio C Hamano <gitster@pobox.com>2008-09-16 00:47:52 -0700
commit27551baa3eddc4111ceee13dc05850ae80c99a3e (patch)
tree34553b6a16b51ef24defb2ee1c373538c923242d
parentddf41044322825844b54a922dec2775ff6d61926 (diff)
parent64ca23afda5bd7514115a4457abf37db21b989ac (diff)
downloadgit-27551baa3eddc4111ceee13dc05850ae80c99a3e.tar.gz
git-27551baa3eddc4111ceee13dc05850ae80c99a3e.tar.xz
Merge branch 'jc/maint-name-hash-clear'
* jc/maint-name-hash-clear: discard_cache: reset lazy name_hash bit
-rw-r--r--read-cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/read-cache.c b/read-cache.c
index 5150c1e14..5b1b3ad03 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -1253,6 +1253,7 @@ int discard_index(struct index_state *istate)
istate->cache_nr = 0;
istate->cache_changed = 0;
istate->timestamp = 0;
+ istate->name_hash_initialized = 0;
free_hash(&istate->name_hash);
cache_tree_free(&(istate->cache_tree));
free(istate->alloc);