read-cache: be strict about "changed" in remove_marked_cache_entries()
commitad837d9ef9d555ab5077767c8672ff48c6cb562b
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 13 Jun 2014 12:19:26 +0000 (13 19:19 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Jun 2014 18:49:38 +0000 (13 11:49 -0700)
treebcc4182a6bc56281727669cd245341fc1985d665
parentce51bf09f8f0de70673b7cbdbc0e0df0b07e1def
read-cache: be strict about "changed" in remove_marked_cache_entries()

remove_marked_cache_entries() deletes entries marked with
CE_REMOVE. But if there is no such entry, do not mark the index as
"changed" because that could trigger an index update unnecessarily.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
read-cache.c