add and use a convenience macro ce_intent_to_add()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
a62bc310bf
commit
895ff3b2c7
@ -377,7 +377,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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user