Re: [PATCH] fetch: allow adding a filter after initial clone.
- From
Xin Li <delphij@google.com>
- Date
- May 13, 2020, 21:41 UTC
- Message-ID
- <CAOhzdui-4KeOit74fTy=3YxSncHGZzy+cE+6njyjHPyJ8xFpMA@mail.gmail.com>
- In-Reply-To
- <xmqqo8qrsh0d.fsf@gitster.c.googlers.com>
The proposed change would allow converting an existing git clone to use partial clones. For example:
$ git clone --depth=1 https://android.googlesource.com/platform/bionic . $ git fetch --unshallow --filter=blob:none origin
Previously, to allow this one would have to do the following manually first; the existing code would handle the rest gracefully:
$ git config core.repositoryFormatVersion 1 $ git config extensions.partialClone origin
And the proposed change would have git do it for the user automatically, the existing workflow remains otherwise unchanged.