From: Junio C Hamano Date: Wed, 05 Jul 2023 18:26:18 GMT Subject: Re: [PATCH v2 7/8] repack: implement `--filter-to` for storing filtered out objects Message-ID: In-Reply-To: <20230705060812.2865188-8-christian.couder@gmail.com> Christian Couder writes: > A previous commit has implemented `git repack --filter=` 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?