read-cache: mark new entries for split index
commite0cf0d7de28ee90e1668049e32802a8dbbcc2950
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 13 Jun 2014 12:19:37 +0000 (13 19:19 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Jun 2014 18:49:40 +0000 (13 11:49 -0700)
tree2591f7dcfda241bdd06d96e1ecebc4b0ea88d30a
parent5fc2fc8fa22312efca46ed5321fa1d3b4d537a72
read-cache: mark new entries for split index

Make sure entry addition does not lead to unifying the index. We don't
need to explicitly keep track of new entries. If ce->index is zero,
they're new. Otherwise it's unlikely that they are new, but we'll do a
thorough check later at writing time.

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