diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2015-08-22 08:08:05 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-09-06 20:01:13 -0700 |
commit | 895ff3b2c73c737b699a921fe71cea4dadefab7b (patch) | |
tree | 5e4900163660191be5544e4c4df14f6dd8d73bf9 /cache-tree.c | |
parent | a62bc310bf033f38a23fb80f5ab2c9f6f05cd161 (diff) | |
download | git-895ff3b2c73c737b699a921fe71cea4dadefab7b.tar.gz |
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>
Diffstat (limited to 'cache-tree.c')
-rw-r--r-- | cache-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cache-tree.c b/cache-tree.c index 32772b9564..e590346a08 100644 --- a/cache-tree.c +++ b/cache-tree.c @@ -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; } |