Git development
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: "Adithya Chakilam via GitGitGadget" <gitgitgadget@gmail.com>
Cc: git@vger.kernel.org,  Martin Fick <mfick@nvidia.com>,
	 Christian Couder <christian.couder@gmail.com>,
	 Adithya Chakilam <achakilam@nvidia.com>
Subject: Re: [PATCH v2 0/2] repack: write filtered-out objects as loose objects
Date: Wed, 25 Nov 2026 11:37:38 -0800	[thread overview]
Message-ID: <xmqqmrqw1z3x.fsf@gitster.g> (raw)
In-Reply-To: <pull.2314.v2.git.1795571091.gitgitgadget@gmail.com> (Adithya Chakilam via GitGitGadget's message of "Wed, 25 Nov 2026 01:44:49 +0000")

"Adithya Chakilam via GitGitGadget" <gitgitgadget@gmail.com> writes:

> git repack -a --filter=blob=1m --filter-to-loose=/path/to/objects

Shouldn't this be "--filter=blob:limit=1m"?

> The destination is treated as a Git object directory.
>
> The first patch adds the option for objects already stored in packs. The
> second extends it to include loose objects excluded by the filter, so the
> destination also receives those objects. Objects already present in the
> destination are not rewritten. With -d, the source copies of those loose
> objects are removed after all objects have been written successfully.

Note that as implemented, the second patch only handles blob:limit
filters and silently skips loose objects under other filters such as
blob:none, I think.

  parent reply	other threads:[~2026-11-25 19:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-13 22:11 [PATCH 0/2] repack: write filtered-out objects as loose objects Adithya Chakilam via GitGitGadget
2026-11-13 22:11 ` [PATCH 1/2] repack: add --filter-to-loose to " Adithya Chakilam via GitGitGadget
2026-11-14 20:08   ` Junio C Hamano
2026-11-25  1:42     ` Adithya Chakilam
2026-11-13 22:11 ` [PATCH 2/2] repack: also copy loose objects excluded by --filter-to-loose Adithya Chakilam via GitGitGadget
2026-11-25  1:44 ` [PATCH v2 0/2] repack: write filtered-out objects as loose objects Adithya Chakilam via GitGitGadget
2026-11-25  1:44   ` [PATCH v2 1/2] repack: add --filter-to-loose to " Adithya Chakilam via GitGitGadget
2026-11-25 19:07     ` Junio C Hamano
2026-11-25  1:44   ` [PATCH v2 2/2] repack: also copy loose objects excluded by --filter-to-loose Adithya Chakilam via GitGitGadget
2026-11-25 19:27     ` Junio C Hamano
2026-11-25 19:37   ` Junio C Hamano [this message]
2026-11-26 10:58   ` [PATCH v2 0/2] repack: write filtered-out objects as loose objects Christian Couder
2026-11-30  6:33     ` Adithya Chakilam

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=xmqqmrqw1z3x.fsf@gitster.g \
    --to=gitster@pobox.com \
    --cc=achakilam@nvidia.com \
    --cc=christian.couder@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitgitgadget@gmail.com \
    --cc=mfick@nvidia.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