Merge branch 'ss/commit-squash-msg' into maint
[gitweb.git] / cache-tree.c
index 1fbe79a0032d898404580246800c3a7f6250ae6d..3ebf9c3aa44eb2ab25f573192b6449f63311ffd7 100644 (file)
@@ -375,7 +375,7 @@ static int update_one(struct cache_tree *it,
                 * they are not part of generated trees. Invalidate up
                 * to root to force cache-tree users to read elsewhere.
                 */
-               if (ce->ce_flags & CE_INTENT_TO_ADD) {
+               if (ce_intent_to_add(ce)) {
                        to_invalidate = 1;
                        continue;
                }