summaryrefslogtreecommitdiff
path: root/builtin/checkout.c
diff options
context:
space:
mode:
authorMatheus Tavares <matheus.bernardino@usp.br>2021-05-04 16:27:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-05-05 03:25:25 (GMT)
commit96168827802b08c4adf2a036594ab235b2c5630f (patch)
treeb1d6fc3ba702f01f3747a0beea7a6e4adc8a6d1e /builtin/checkout.c
parent68e66f2987724a639c896e7996ea347be62ef578 (diff)
downloadgit-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.c')
-rw-r--r--builtin/checkout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/checkout.c b/builtin/checkout.c
index 4c696ef..db667d0 100644
--- a/builtin/checkout.c
+++ b/builtin/checkout.c
@@ -291,7 +291,7 @@ static int checkout_merged(int pos, const struct checkout *state, int *nr_checko
if (write_object_file(result_buf.ptr, result_buf.size, blob_type, &oid))
die(_("Unable to add merge result for '%s'"), path);
free(result_buf.ptr);
- ce = make_transient_cache_entry(mode, &oid, path, 2);
+ ce = make_transient_cache_entry(mode, &oid, path, 2, NULL);
if (!ce)
die(_("make_cache_entry failed for path '%s'"), path);
status = checkout_entry(ce, state, NULL, nr_checkouts);