diff options
| author | Christian Couder <christian.couder@gmail.com> | 2023-10-02 18:55:02 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-10-02 14:54:30 -0700 |
| commit | 1cd43a9ed96831b983fada37a71daacb6be373dc (patch) | |
| tree | 8dc11eee02d8ca8bd1de7f9994918448a5c11ec8 /builtin/commit-graph.c | |
| parent | repack: add `--filter=<filter-spec>` option (diff) | |
| download | git-1cd43a9ed96831b983fada37a71daacb6be373dc.tar.gz git-1cd43a9ed96831b983fada37a71daacb6be373dc.zip | |
gc: add `gc.repackFilter` config option
A previous commit has implemented `git repack --filter=<filter-spec>` to
allow users to filter out some objects from the main pack and move them
into a new different pack.
Users might want to perform such a cleanup regularly at the same time as
they perform other repacks and cleanups, so as part of `git gc`.
Let's allow them to configure a <filter-spec> for that purpose using a
new gc.repackFilter config option.
Now when `git gc` will perform a repack with a <filter-spec> configured
through this option and not empty, the repack process will be passed a
corresponding `--filter=<filter-spec>` argument.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions
