diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2014-06-13 19:19:33 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-13 11:49:39 -0700 |
commit | e6c286e8b2d0748cfaa670f6738db0c232427cd3 (patch) | |
tree | 061fd404ed97633794ccf63e8d41f27cfb9d7b71 /cache-tree.c | |
parent | d0cfc3e866a77eed98ab2caf41a39a87837950e6 (diff) | |
download | git-e6c286e8b2d0748cfaa670f6738db0c232427cd3.tar.gz |
cache-tree: mark istate->cache_changed on prime_cache_tree()
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 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cache-tree.c b/cache-tree.c index 18055f1c96..c53f7de2b1 100644 --- a/cache-tree.c +++ b/cache-tree.c @@ -654,11 +654,12 @@ static void prime_cache_tree_rec(struct cache_tree *it, struct tree *tree) it->entry_count = cnt; } -void prime_cache_tree(struct cache_tree **it, struct tree *tree) +void prime_cache_tree(struct index_state *istate, struct tree *tree) { - cache_tree_free(it); - *it = cache_tree(); - prime_cache_tree_rec(*it, tree); + cache_tree_free(&istate->cache_tree); + istate->cache_tree = cache_tree(); + prime_cache_tree_rec(istate->cache_tree, tree); + istate->cache_changed |= CACHE_TREE_CHANGED; } /* |