From: Nguyễn Thái Ngọc Duy Date: Tue, 24 Aug 2010 22:19:53 GMT Subject: [PATCH 03/32] cache-tree: ignore CE_REMOVE entries in verify_cache() Message-ID: <1282688422-7738-4-git-send-email-pclouds@gmail.com> In-Reply-To: <1282688422-7738-1-git-send-email-pclouds@gmail.com> Those entries are not to be written out. MAY HAVE NEGATIVE IMPACT!! Signed-off-by: Nguyễn Thái Ngọc Duy --- cache-tree.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/cache-tree.c b/cache-tree.c index 7fd7203..03952c7 100644 --- a/cache-tree.c +++ b/cache-tree.c @@ -156,6 +156,8 @@ static int verify_cache(struct cache_entry **cache, funny = 0; for (i = 0; i < entries; i++) { struct cache_entry *ce = cache[i]; + if (ce->ce_flags & CE_REMOVE) + continue; if (ce_stage(ce) || (ce->ce_flags & CE_INTENT_TO_ADD)) { if (10 < ++funny) { fprintf(stderr, "...\n"); -- 1.7.1.rc1.69.g24c2f7