Re: [PATCH 2/2] fetch-pack: do not check links for partial fetch

2018-03-15 Thread Junio C Hamano
Jonathan Tan <jonathanta...@google.com> writes: > Our only definition (currently) for the "partial" fetch boundary is > whether an object in a promisor packfile (a packfile obtained from the > promisor remote) references it, so I think that checking for crossing a > &

Re: [PATCH 2/2] fetch-pack: do not check links for partial fetch

2018-03-14 Thread Jonathan Tan
ectivity check > altogether. Does "git fetch" lack sufficient information to attempt > the connectivity check, and when (and only when) it hits a broken > link, see if that is because the connectivity check traversal is > crossing a "partial" fetch boundary, or something

Re: [PATCH 2/2] fetch-pack: do not check links for partial fetch

2018-03-14 Thread Junio C Hamano
when) it hits a broken link, see if that is because the connectivity check traversal is crossing a "partial" fetch boundary, or something along that line? > > Signed-off-by: Jonathan Tan <jonathanta...@google.com> > --- > fetch-pack.c | 13 +++--

[PATCH 2/2] fetch-pack: do not check links for partial fetch

2018-03-14 Thread Jonathan Tan
When doing a partial clone or fetch with transfer.fsckobjects=1, use the --fsck-objects instead of the --strict flag when invoking index-pack so that links are not checked, only objects. This is because incomplete links are expected when doing a partial clone or fetch. Signed-off-by: Jonathan Tan

Re: partial fetch

2018-02-12 Thread Jeff Hostetler
On 2/12/2018 11:24 AM, Basin Ilya wrote: Hi. In 2017 a set of patches titled "add object filtering for partial fetch" was accepted. Is it what I think it is? Will we be able to download only a subdirectory from a large project? yes, that is the goal. there are several caveat

partial fetch

2018-02-12 Thread Basin Ilya
Hi. In 2017 a set of patches titled "add object filtering for partial fetch" was accepted. Is it what I think it is? Will we be able to download only a subdirectory from a large project?

[PATCH v7 16/16] t5616: test bulk prefetch after partial fetch

2017-12-08 Thread Jeff Hostetler
From: Jeff Hostetler <jeffh...@microsoft.com> Add test to t5616 to bulk fetch missing objects following a partial fetch. A technique like this could be used in a pre-command hook for example. Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com> --- t/t5616-partial-c

[PATCH v5 04/14] fetch: add object filtering for partial fetch

2017-11-21 Thread Jeff Hostetler
From: Jeff Hostetler <jeffh...@microsoft.com> Teach fetch to use the list-objects filtering parameters to allow a "partial fetch" following a "partial clone". Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com> --- builtin/fetch.c | 20 +++

[PATCH v4 04/15] fetch: add object filtering for partial fetch

2017-11-16 Thread Jeff Hostetler
From: Jeff Hostetler <jeffh...@microsoft.com> Teach fetch to use the list-objects filtering parameters to allow a "partial fetch" following a "partial clone". Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com> --- builtin/fetch.c | 20 +++

Re: [PATCH 04/14] fetch: add object filtering for partial fetch

2017-11-16 Thread Jeff Hostetler
fetches +* for each remote and one of them MAY INHERIT the proper +* partial-fetch settings, so everything is consistent. +*/ + die(_("partial-fetch is not supported on multiple remotes")); + } + if (!append &

Re: [PATCH 04/14] fetch: add object filtering for partial fetch

2017-11-03 Thread Jonathan Tan
* We currently only support partial-fetches to the remote > + * used for the partial-clone because we only support 1 > + * promisor remote, so we DO NOT allow explicit command > + * line filter arguments. > + * > +

[PATCH 04/14] fetch: add object filtering for partial fetch

2017-11-02 Thread Jeff Hostetler
From: Jeff Hostetler <jeffh...@microsoft.com> Teach fetch to use the list-objects filtering parameters to allow a "partial fetch" following a "partial clone". Signed-off-by: Jeff Hostetler <jeffh...@microsoft.c

Re: Partial fetch?

2016-11-29 Thread Dāvis Mosāns
2016-11-29 23:55 GMT+02:00 Jeff King : > On Mon, Nov 28, 2016 at 10:34:51PM +0200, Dāvis Mosāns wrote: > >> I'm trying to fetch a remote repository over https but sadly it >> timeouts too soon. >> >> $ git fetch -v upstream >> POST git-upload-pack (gzip 1148 to 641 bytes) >> POST

Re: Partial fetch?

2016-11-29 Thread Jeff King
On Mon, Nov 28, 2016 at 10:34:51PM +0200, Dāvis Mosāns wrote: > I'm trying to fetch a remote repository over https but sadly it > timeouts too soon. > > $ git fetch -v upstream > POST git-upload-pack (gzip 1148 to 641 bytes) > POST git-upload-pack (gzip 1148 to 644 bytes) > [...] > Is there some

Partial fetch?

2016-11-28 Thread Dāvis Mosāns
I'm trying to fetch a remote repository over https but sadly it timeouts too soon. $ git fetch -v upstream POST git-upload-pack (gzip 1148 to 641 bytes) POST git-upload-pack (gzip 1148 to 644 bytes) POST git-upload-pack (gzip 1948 to 1038 bytes) POST git-upload-pack (gzip 3548 to 1845 bytes) POST