name-hash.c: remove cache entries instead of marking them CE_UNHASHED
commit419a597f6408d5b5cffe3e278258f58b47d15ad3
authorKarsten Blees <karsten.blees@gmail.com>
Thu, 14 Nov 2013 19:22:27 +0000 (14 20:22 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Nov 2013 21:04:24 +0000 (18 13:04 -0800)
tree511ee6ee942cb1c10a3cfb3030ec255ddbed2fb3
parent8b013788a14b96b8d20b1f6bc76a42f9733aefad
name-hash.c: remove cache entries instead of marking them CE_UNHASHED

The new hashmap implementation supports remove, so really remove unused
cache entries from the name hashmap instead of just marking them.

The CE_UNHASHED flag and CE_STATE_MASK are no longer needed.

Keep the CE_HASHED flag to prevent adding entries twice.

Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
name-hash.c
read-cache.c
unpack-trees.c