* Removing old objects from partial clone
@ 2023-03-28 23:28 uzytkownik2
2023-03-29 8:51 ` Christian Couder
0 siblings, 1 reply; 2+ messages in thread
From: uzytkownik2 @ 2023-03-28 23:28 UTC (permalink / raw)
To: git
Hi,
I'd like to periodically remove objects which:
- Are not reachable from newest N commits from any branch
- Can be fetched from server if needed
Unfortunatly I work on large repo and git gc doesn't work as all
objects are still technically reachable.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Removing old objects from partial clone
2023-03-28 23:28 Removing old objects from partial clone uzytkownik2
@ 2023-03-29 8:51 ` Christian Couder
0 siblings, 0 replies; 2+ messages in thread
From: Christian Couder @ 2023-03-29 8:51 UTC (permalink / raw)
To: uzytkownik2; +Cc: git
Hi,
On Wed, Mar 29, 2023 at 2:13 AM <uzytkownik2@gmail.com> wrote:
>
> Hi,
>
> I'd like to periodically remove objects which:
>
> - Are not reachable from newest N commits from any branch
> - Can be fetched from server if needed
>
> Unfortunatly I work on large repo and git gc doesn't work as all
> objects are still technically reachable.
John Cai and I have been working on a new `--filter` option for `git
repack` that might help you but is dangerous to use (as it could
remove objects that haven't be pushed which could corrupt the repo).
We haven't been able to get it accepted but you may still find the
discussions and code interesting.
See https://lore.kernel.org/git/20221221040446.2860985-1-christian.couder@gmail.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-29 8:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-28 23:28 Removing old objects from partial clone uzytkownik2
2023-03-29 8:51 ` Christian Couder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).