Re: [PATCH v2 7/8] repack: implement `--filter-to` for storing filtered out objects
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 5, 2023, 18:26 UTC
- Message-ID
- <xmqq5y6y1agl.fsf@gitster.g>
- In-Reply-To
- <20230705060812.2865188-8-christian.couder@gmail.com>
Christian Couder <christian.couder@gmail.com> writes:
> 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.
OK, this sidesteps the question I had on an earlier step rather nicely. Instead of having to find out which ones are to be moved away, just generating them in a separate location would be more straight forward.
The implementation does not seem to restrict where --filter-to directory can be placed, but shouldn't it make sure that it is one of the already specified alternates directories? Otherwise the user will end up corrupting the repository, no?