git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Radoslaw Szkodzinski <astralstorm@gorzow.mm.pl>
To: Petr Baudis <pasky@suse.cz>
Cc: Craig Schlenter <craig@codefountain.com>,
	Junio C Hamano <junkio@cox.net>,
	Git Mailing List <git@vger.kernel.org>
Subject: Re: Make "git clone" less of a deathly quiet experience
Date: Sat, 11 Feb 2006 14:15:40 +0100	[thread overview]
Message-ID: <43EDE37C.9050005@gorzow.mm.pl> (raw)
In-Reply-To: <20060211130530.GR31278@pasky.or.cz>

[-- Attachment #1: Type: text/plain, Size: 1202 bytes --]

Petr Baudis wrote:
> But the native git protocol works completely differently - you tell the
> server "give me all objects you have between object X and head", the
> object will generate a completely custom pack just for you and send it
> over the network. The next time you fetch, you just ask for a pack
> between object X and head again, but the head can be already totally
> different. What we would have to do is to check for interrupted
> packfiles before fetching, attempt to fix them (cutting out the
> incomplete objects and broken delta chains, if applicable), and then
> tell the remote side to skip those objects; but that may not be easy
> because there can be a lot of "loose fibres". Another way would be to
> just tell the server "if head is still Y, start sending the pack only
> after N bytes". *shudder*
> 

The other way would be:
 - generate pack file between X and Y
 - start sending from N bytes

It could break if the repo has been rebased in the meantime.
But we could safeguard against it by sending the hash of the packfile
up to N bytes.

-- 
GPG Key id:  0xD1F10BA2
Fingerprint: 96E2 304A B9C4 949A 10A0  9105 9543 0453 D1F1 0BA2

AstralStorm


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

  reply	other threads:[~2006-02-11 13:15 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-11  4:31 Make "git clone" less of a deathly quiet experience Linus Torvalds
2006-02-11  4:37 ` Linus Torvalds
2006-02-11  5:50   ` Junio C Hamano
2006-02-11 17:39     ` Linus Torvalds
2006-02-11  5:48 ` Junio C Hamano
2006-02-11  7:35   ` Craig Schlenter
2006-02-11  8:44     ` Radoslaw Szkodzinski
2006-02-11 13:05       ` Petr Baudis
2006-02-11 13:15         ` Radoslaw Szkodzinski [this message]
2006-02-11 13:33   ` Petr Baudis
2006-02-11 13:41     ` Petr Baudis
2006-02-11 17:24     ` Alex Riesen
2006-02-11 17:45   ` Linus Torvalds
2006-02-11 19:10     ` Keith Packard
2006-02-12  3:43       ` Andreas Ericsson
2006-02-12  4:11         ` Keith Packard
2006-02-12 11:02           ` Andreas Ericsson
2006-02-12 21:04             ` Keith Packard
2006-02-16  6:56             ` Eric W. Biederman
2006-02-16  7:33               ` Junio C Hamano
2006-02-13  2:06           ` Martin Langhoff
2006-02-13  3:36             ` Junio C Hamano
2006-02-11 18:39 ` Alex Riesen
2006-02-11 19:04   ` Linus Torvalds

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=43EDE37C.9050005@gorzow.mm.pl \
    --to=astralstorm@gorzow.mm.pl \
    --cc=craig@codefountain.com \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.net \
    --cc=pasky@suse.cz \
    /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;
as well as URLs for NNTP newsgroup(s).