Re: [RFC] shallow clone

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [RFC] shallow clone

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:17

This is whacky, but another completely different strategy is to
introduce remote alternates.

If you can allow objects/info/alternates to name a repository
that is not on the local disk, we can set the original remote
repository we "clone" from as one of the alternates, and teach
read_sha1_file() to locally cache objects we read from remote
alternates.

After such a "shallow clone", the user may want to prime the
cache by something like:

	$ git-rev-list --objects v2.6.14..master |
          git-pack-objects --stdout >/dev/null

before going offline.  Obviously you can keep the resulting pack
instead of leaving things loose.

I am not seriously advocating this yet -- adding calls to http
and git transfer machinery in read_sha1_file(), which is as low
level as you can go, is not something I have guts to do at the
moment.

Re: [RFC] shallow clone

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:42:18

Hi,

On Tue, 31 Jan 2006, Junio C Hamano wrote:
This is whacky, but another completely different strategy is to
introduce remote alternates.
I'd rather go with the original plan. After all, you do not really need 
the cut-off commit objects. All needed objects are available on the server 
side: it just has to have a way to know which ones to send.

Ciao,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help