diff options
author | Matheus Tavares <matheus.bernardino@usp.br> | 2021-05-04 18:27:28 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-05-05 05:25:25 +0200 |
commit | 96168827802b08c4adf2a036594ab235b2c5630f (patch) | |
tree | b1d6fc3ba702f01f3747a0beea7a6e4adc8a6d1e /unpack-trees.c | |
parent | parallel-checkout: add design documentation (diff) | |
download | git-96168827802b08c4adf2a036594ab235b2c5630f.tar.xz git-96168827802b08c4adf2a036594ab235b2c5630f.zip |
make_transient_cache_entry(): optionally alloc from mem_pool
Allow make_transient_cache_entry() to optionally receive a mem_pool
struct in which it should allocate the entry. This will be used in the
following patch, to store some transient entries which should persist
until parallel checkout finishes.
Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'unpack-trees.c')
-rw-r--r-- | unpack-trees.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unpack-trees.c b/unpack-trees.c index 4b77e52c6b..fa5b7ab7ee 100644 --- a/unpack-trees.c +++ b/unpack-trees.c @@ -1034,7 +1034,7 @@ static struct cache_entry *create_ce_entry(const struct traverse_info *info, size_t len = traverse_path_len(info, tree_entry_len(n)); struct cache_entry *ce = is_transient ? - make_empty_transient_cache_entry(len) : + make_empty_transient_cache_entry(len, NULL) : make_empty_cache_entry(istate, len); ce->ce_mode = create_ce_mode(n->mode); |