From: Junio C Hamano Date: Fri, 28 Apr 2023 23:03:03 +0000 (-0700) Subject: Merge branch 'tb/enable-cruft-packs-by-default' X-Git-Tag: v2.41.0-rc0~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fc23c397c7088a397a693bc5cb483a5894f59f53;p=thirdparty%2Fgit.git Merge branch 'tb/enable-cruft-packs-by-default' When "gc" needs to retain unreachable objects, packing them into cruft packs (instead of exploding them into loose object files) has been offered as a more efficient option for some time. Now the use of cruft packs has been made the default and no longer considered an experimental feature. * tb/enable-cruft-packs-by-default: repository.h: drop unused `gc_cruft_packs` builtin/gc.c: make `gc.cruftPacks` enabled by default t/t9300-fast-import.sh: prepare for `gc --cruft` by default t/t6500-gc.sh: add additional test cases t/t6500-gc.sh: refactor cruft pack tests t/t6501-freshen-objects.sh: prepare for `gc --cruft` by default t/t5304-prune.sh: prepare for `gc --cruft` by default builtin/gc.c: ignore cruft packs with `--keep-largest-pack` builtin/repack.c: fix incorrect reference to '-C' pack-write.c: plug a leak in stage_tmp_packfiles() --- fc23c397c7088a397a693bc5cb483a5894f59f53 diff --cc pack-write.c index 381555359c,4da0ccc5f5..3b3ce89de6 --- a/pack-write.c +++ b/pack-write.c @@@ -571,7 -569,7 +571,8 @@@ void stage_tmp_packfiles(struct strbuf if (mtimes_tmp_name) rename_tmp_packfile(name_buffer, mtimes_tmp_name, "mtimes"); + free((char *)rev_tmp_name); + free(mtimes_tmp_name); } void write_promisor_file(const char *promisor_name, struct ref **sought, int nr_sought)