Thread (104 messages) flat view 104 messages, 2 authors, 2023-10-02

Re: [PATCH v3 6/8] gc: add `gc.repackFilter` config option

From: Taylor Blau <hidden>
Date: 2023-08-09 21:15:54

On Tue, Aug 08, 2023 at 10:38:26AM +0200, Christian Couder wrote:
quoted
I may be missing something, but what happens if the user has configured
gc.repackFilter, but passes additional filters over the command-line
arguments? I'm not sure whether these should be AND'd with the existing
filters in config, or if they should reset them to zero, or something
else.
`git gc` doesn't recognize `--filter=<...>` arguments, only `git
repack` is being teached to recognize it in this patch series. So I
don't see how there could be multiple such arguments on the command
line when `git gc` is used.

Also in version 4 `git repack` can be passed many such arguments
anyway. So I think we are good.
Ah, thanks. Sorry for the misunderstanding :-).
We could support multiple gc.repackFilter config options, but on the
other hand using something like
`combine:<filter1>+<filter2>+...<filterN>` should work, as the content
of the option is passed as-is to the command line. So we can leave
that improvement for later if people don't like the `combine:...` and
are interested in it.
I agree. To me it seems like there are probably relatively few people
who would want to specify a multi-valued configuration directly when
they could just use the "combine" trick you suggest. In either case, I
agree that it can be done on top later.

Thanks,
Taylor
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help