summaryrefslogtreecommitdiff
path: root/read-cache.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-09-19 02:53:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-09-19 02:53:06 (GMT)
commita3fcc0562cda47f6109e81e456fb6177d7057117 (patch)
treeeeda7e05678c64427b7c59767ba7264cba716076 /read-cache.c
parentf99b1d23bb9a8f6a8f15df578e65bb04664cbdeb (diff)
parent64ca23afda5bd7514115a4457abf37db21b989ac (diff)
downloadgit-a3fcc0562cda47f6109e81e456fb6177d7057117.zip
git-a3fcc0562cda47f6109e81e456fb6177d7057117.tar.gz
git-a3fcc0562cda47f6109e81e456fb6177d7057117.tar.bz2
Merge branch 'jc/maint-name-hash-clear' into maint
* jc/maint-name-hash-clear: discard_cache: reset lazy name_hash bit
Diffstat (limited to 'read-cache.c')
-rw-r--r--read-cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/read-cache.c b/read-cache.c
index 35fec46..8f96fd1 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -1244,6 +1244,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);