]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/repack.c: pass "out" to `prepare_pack_objects`
authorTaylor Blau <me@ttaylorr.com>
Mon, 24 Oct 2022 18:43:03 +0000 (14:43 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Oct 2022 20:39:42 +0000 (13:39 -0700)
commit4e7b65ba8e7b4174c4ab249b64c6cb3ad0009732
tree5326ce8e0c7692d1aa69cd2a47dd25826f735f5a
parent1fc3c0ad407008c2f71dd9ae1241d8b75f8ef886
builtin/repack.c: pass "out" to `prepare_pack_objects`

`builtin/repack.c`'s `prepare_pack_objects()` is used to prepare a set
of arguments to a `pack-objects` process which will generate a desired
pack.

A future patch will add an `--expire-to` option which allows `git
repack` to write a cruft pack containing the pruned objects out to a
separate repository. Prepare for this by teaching that function to write
packs to an arbitrary location specified by the caller.

All existing callers of `prepare_pack_objects()` will pass `packtmp` for
`out`, retaining the existing behavior.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/repack.c