diff options
author | Matheus Tavares <matheus.bernardino@usp.br> | 2021-05-04 16:27:28 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-05-05 03:25:25 (GMT) |
commit | 96168827802b08c4adf2a036594ab235b2c5630f (patch) | |
tree | b1d6fc3ba702f01f3747a0beea7a6e4adc8a6d1e /builtin/checkout--worker.c | |
parent | 68e66f2987724a639c896e7996ea347be62ef578 (diff) | |
download | git-96168827802b08c4adf2a036594ab235b2c5630f.zip git-96168827802b08c4adf2a036594ab235b2c5630f.tar.gz git-96168827802b08c4adf2a036594ab235b2c5630f.tar.bz2 |
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 'builtin/checkout--worker.c')
-rw-r--r-- | builtin/checkout--worker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/checkout--worker.c b/builtin/checkout--worker.c index 31e0de2..289a9b8 100644 --- a/builtin/checkout--worker.c +++ b/builtin/checkout--worker.c @@ -39,7 +39,7 @@ static void packet_to_pc_item(const char *buffer, int len, } memset(pc_item, 0, sizeof(*pc_item)); - pc_item->ce = make_empty_transient_cache_entry(fixed_portion->name_len); + pc_item->ce = make_empty_transient_cache_entry(fixed_portion->name_len, NULL); pc_item->ce->ce_namelen = fixed_portion->name_len; pc_item->ce->ce_mode = fixed_portion->ce_mode; memcpy(pc_item->ce->name, variant, pc_item->ce->ce_namelen); |