gc: add `gc.repackFilterTo` config option
commit9b96046b9239589756cde8fbcbafe05ac7ec4611
authorChristian Couder <christian.couder@gmail.com>
Mon, 2 Oct 2023 16:55:04 +0000 (2 18:55 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Oct 2023 21:54:31 +0000 (2 14:54 -0700)
treeab6a3b6b9656c5f63d2b899a2f6bef1dacc171a0
parent71c5aec1f54eba5a2856f72d85823af64e5deb34
gc: add `gc.repackFilterTo` config option

A previous commit implemented the `gc.repackFilter` config option
to specify a filter that should be used by `git gc` when
performing repacks.

Another previous commit has implemented
`git repack --filter-to=<dir>` to specify the location of the
packfile containing filtered out objects when using a filter.

Let's implement the `gc.repackFilterTo` config option to specify
that location in the config when `gc.repackFilter` is used.

Now when `git gc` will perform a repack with a <dir> configured
through this option and not empty, the repack process will be
passed a corresponding `--filter-to=<dir>` argument.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/gc.txt
builtin/gc.c
t/t6500-gc.sh