git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christian Couder <christian.couder@gmail.com>
To: uzytkownik2@gmail.com
Cc: git@vger.kernel.org
Subject: Re: Removing old objects from partial clone
Date: Wed, 29 Mar 2023 10:51:38 +0200	[thread overview]
Message-ID: <CAP8UFD1SwJeAF_n=yTjrDFZg10Y7oBNiQORKSkH=USHQLVfo5g@mail.gmail.com> (raw)
In-Reply-To: <83c29b890e7c31e0f174b8a5da22c5b20ce647da.camel@gmail.com>

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/

      reply	other threads:[~2023-03-29  8:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-28 23:28 Removing old objects from partial clone uzytkownik2
2023-03-29  8:51 ` Christian Couder [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAP8UFD1SwJeAF_n=yTjrDFZg10Y7oBNiQORKSkH=USHQLVfo5g@mail.gmail.com' \
    --to=christian.couder@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=uzytkownik2@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).