git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Brown <git@davidb.org>
To: Eyvind Bernhardsen <eyvind-git@orakel.ntnu.no>
Cc: Jakub Narebski <jnareb@gmail.com>,
	eric miao <eric.y.miao@gmail.com>,
	git@vger.kernel.org
Subject: Re: Will git have a baseline feature or something alike?
Date: Sat, 1 Mar 2008 12:43:52 -0800	[thread overview]
Message-ID: <20080301204352.GA862@old.davidb.org> (raw)
In-Reply-To: <8384AA89-4ECF-4BB8-8A3B-6A656F2D2903@orakel.ntnu.no>

On Sat, Mar 01, 2008 at 06:30:13PM +0100, Eyvind Bernhardsen wrote:

> Okay, as a git n00b I'm probably on completely the wrong track, but if you 
> made a git repository out of a kernel tarball (cd linux-2.6.24 && git init 
> && git add .) and then did a shallow fetch from kernel.org into that 
> repository, wouldn't the blobs you added get reused (assuming the tarball 
> you downloaded was fairly recent), thus reducing the amount of data fetch 
> has to transfer?

Git uses the commit history to determine what objects you might already
have.  For normal use cases, this works quite well, however in this
instance it doesn't help at all.  You'll ending up transferring everything,
even for objects you already have.  Git will detect that you already have
the object only after the transfer.

Think about it, though.  In order to do this generally, the client would
have to send the hash of every object it has.  Perhaps this would be a
useful thing to do when git detects that there are no common commits, but
it would only really help the case of pulling from multiple repos that
manage the same files with separate histories.

There are some cases where this happens, such as when changes go through
another revision control system, but probably not normal usage.

David

      parent reply	other threads:[~2008-03-01 21:22 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-29  9:23 Will git have a baseline feature or something alike? eric miao
2008-02-29  9:56 ` Sean
2008-02-29 10:38   ` Karl Hasselström
2008-02-29 13:21 ` Jakub Narebski
2008-03-01  7:04   ` Sam Vilain
2008-03-01 12:39     ` Jakub Narebski
2008-03-01 13:20       ` Sam Vilain
2008-03-02 19:38         ` Jan Hudec
2008-03-02 21:29         ` Martin Langhoff
2008-03-01 14:10   ` eric miao
2008-03-01 14:29     ` Nguyen Thai Ngoc Duy
2008-03-01 15:41     ` Jakub Narebski
2008-03-01 17:30       ` Eyvind Bernhardsen
2008-03-01 18:00         ` Jakub Narebski
2008-03-02 14:04           ` Shawn O. Pearce
2008-03-01 20:43         ` David Brown [this message]

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=20080301204352.GA862@old.davidb.org \
    --to=git@davidb.org \
    --cc=eric.y.miao@gmail.com \
    --cc=eyvind-git@orakel.ntnu.no \
    --cc=git@vger.kernel.org \
    --cc=jnareb@gmail.com \
    /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).