From: Junio C Hamano Date: Mon, 13 Feb 2012 06:42:10 +0000 (-0800) Subject: Merge branch 'jc/maint-commit-ignore-i-t-a' X-Git-Tag: v1.7.10-rc0~101 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=44a1020d4d41b90be80745c7a16e2a49fa612b56;p=git.git Merge branch 'jc/maint-commit-ignore-i-t-a' * jc/maint-commit-ignore-i-t-a: commit: ignore intent-to-add entries instead of refusing Conflicts: cache-tree.c --- 44a1020d4d41b90be80745c7a16e2a49fa612b56 diff --cc cache-tree.c index 8de39590d,ce0d0e3ec..bf03cb7fc --- a/cache-tree.c +++ b/cache-tree.c @@@ -158,9 -158,7 +158,9 @@@ static int verify_cache(struct cache_en funny = 0; for (i = 0; i < entries; i++) { struct cache_entry *ce = cache[i]; - if (ce_stage(ce) || (ce->ce_flags & CE_INTENT_TO_ADD)) { + if (ce_stage(ce)) { + if (silent) + return -1; if (10 < ++funny) { fprintf(stderr, "...\n"); break;