projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a81892d
)
discard_cache: reset lazy name_hash bit
author
Junio C Hamano
<gitster@pobox.com>
Sat, 23 Aug 2008 20:05:10 +0000
(13:05 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Sat, 23 Aug 2008 20:05:10 +0000
(13:05 -0700)
We forgot to reset name_hash_initialized bit when discarding the in-core index.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
read-cache.c
patch
|
blob
|
history
diff --git
a/read-cache.c
b/read-cache.c
index 2c03ec3069decb20f7557af4ac7dbe295f2dcf9c..6c57095f73427ffeaadeaa6018b1f8bdc23ee859 100644
(file)
--- a/
read-cache.c
+++ b/
read-cache.c
@@
-1243,6
+1243,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);