[PATCH 07/32] read-cache: be strict about changed in remove_marked_cache_entries()

2014-06-13 Thread Nguyễn Thái Ngọc Duy
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 pclo...@gmail.com --- read-cache.c | 2 ++ 1 file changed, 2

[PATCH 07/32] read-cache: be strict about changed in remove_marked_cache_entries()

2014-04-28 Thread Nguyễn Thái Ngọc Duy
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 pclo...@gmail.com --- read-cache.c | 2 ++ 1 file changed, 2