diff options
author | Elijah Newren <newren@gmail.com> | 2022-02-02 05:37:29 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-02-02 21:02:27 +0300 |
commit | 7b90ab467a658b2fb1b7c15c7d634e06f35f4ef2 (patch) | |
tree | 223e2be7ced848f782226bc6bd984f065f0cf546 /protocol.h | |
parent | db757e8b8d5527c195c461a04ec35d141ddea48e (diff) |
log: clean unneeded objects during `log --remerge-diff`
The --remerge-diff option will need to create new blobs and trees
representing the "automatic merge" state. If one is traversing a
long project history, one can easily get hundreds of thousands of
loose objects generated during `log --remerge-diff`. However, none of
those loose objects are needed after we have completed our diff
operation; they can be summarily deleted.
Add a new helper function to tmp_objdir to discard all the contained
objects, and call it after each merge is handled.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'protocol.h')
0 files changed, 0 insertions, 0 deletions