From: Dennis Kaarsemaker <dennis@kaarsemaker.net>
To: "Andres G. Aragoneses" <knocte@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: RFC: reverse history tree, for faster & background clones
Date: Fri, 12 Jun 2015 13:33:35 +0200 [thread overview]
Message-ID: <1434108815.5381.3.camel@kaarsemaker.net> (raw)
In-Reply-To: <mlefli$h6v$1@ger.gmane.org>
On vr, 2015-06-12 at 13:26 +0200, Andres G. Aragoneses wrote:
> AFAIU git stores the contents of a repo as a sequence of patches in the
> .git metadata folder.
It does not, it stores full snapshots of files.
[I've cut the example, as it's not how git works]
> 1. `git clone --depth 1` would be way faster, and without the need of
> on-demand compressing of packfiles in the server side, correct me if I'm
> wrong?
You're wrong due to the misunderstanding of how git works :)
> 2. `git clone` would be able to allow a "fast operation, complete in the
> background" mode that would allow you to download the first snapshot of
> the repo very quickly, so that the user would be able to start working
> on his working directory very quickly, while a "background job" keeps
> retreiving the history data in the background.
This could actually be a good thing, and can be emulated now with git
clone --depth=1 and subsequent fetches in the background to deepen the
history. I can see some value in clone doing this by itself, first doing
a depth=1 fetch, then launching itself into the background, giving you a
worktree to play with earlier.
--
Dennis Kaarsemaker
http://www.kaarsemaker.net
next prev parent reply other threads:[~2015-06-12 11:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-12 11:26 RFC: reverse history tree, for faster & background clones Andres G. Aragoneses
2015-06-12 11:33 ` Dennis Kaarsemaker [this message]
2015-06-12 11:39 ` Andres G. Aragoneses
2015-06-12 12:33 ` Dennis Kaarsemaker
2015-06-14 14:14 ` Andres G. Aragoneses
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=1434108815.5381.3.camel@kaarsemaker.net \
--to=dennis@kaarsemaker.net \
--cc=git@vger.kernel.org \
--cc=knocte@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).