Re: [PATCH 0/9] Repack objects into separate packfiles based on a filter
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 14, 2023, 21:36 UTC
- Message-ID
- <xmqqsfatwwtv.fsf@gitster.g>
- In-Reply-To
- <20230614192541.1599256-1-christian.couder@gmail.com>
Christian Couder <christian.couder@gmail.com> writes:
Show 13 quoted lines
> In some discussions, it was mentioned that such a feature, or a > similar feature in `git gc`, or in a new standalone command (perhaps > called `git prune-filtered`), should put the filtered out objects into > a new packfile instead of deleting them. > > Recently there were internal discussions at GitLab about either moving > blobs from inactive repos onto cheaper storage, or moving large blobs > onto cheaper storage. This lead us to rethink at repacking using a > filter, but moving the filtered out objects into a separate packfile > instead of deleting them. > > So here is a new patch series doing that while implementing the > `--filter=<filter-spec>` option in `git repack`.
Very interesting idea, indeed, and would be very useful. Thanks.