Re: Is it possible to git clone --filter= without any objects?
- From
Matthew DeVore <matvore@google.com>
- Date
- Sep 12, 2018, 01:12 UTC
- Message-ID
- <CAMfpvhKYN3E+AJdwFM3k9e4awg5sW8dnVnmROA4W10mQMxWB9A@mail.gmail.com>
- In-Reply-To
- <CAFXrp_emK=k7by5pM5=GpsixJVeeJhT89-Cgq3JYbn5yg14CpQ@mail.gmail.com>
On Tue, Sep 11, 2018 at 11:30 AM Ciro Santilli <ciro.santilli@gmail.com> wrote:
> The mentioned --filter=tree:0 would basically do what I want it seems, > good to hear!. I wonder why not call it tree:none though to match > blob:none.
There are some plans of making tree: accept positive integers in order to filter out files greater than that depth. e.g. tree:1 would fetch all blobs and tree objects directly contained by the tree. tree:2 would fetch every object tree:1 does plus anything referred to directly by those objects.