]> git.ipfire.org Git - thirdparty/git.git/commit
remerge-diff: lazily prepare temporary objdir on demand
authorJunio C Hamano <gitster@pobox.com>
Fri, 9 Aug 2024 22:30:51 +0000 (15:30 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Aug 2024 22:42:35 +0000 (15:42 -0700)
commit245cac5c3312b9afab5c47cb222f0e5d1845da0d
treea4d4d6230eab9cd320735dfaea6c2c57eda38475
parenta77554ea0972e4ec3518fb8fb0b2582c76cf3105
remerge-diff: lazily prepare temporary objdir on demand

It is error prone for each caller that sets revs.remerge_diff bit
to be responsible for preparing a temporary object directory and
rotate it into the list of alternate object stores, making it the
primary object store.

Instead, remove the code to set up and arrange the temporary object
directory from the current callers and implement it in the code that
runs remerge-diff logic.  The code to undo the futzing of the list
of alternate object store is still spread across the callers, but we
will deal with it in future steps.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/diff-tree.c
builtin/log.c
log-tree.c