git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: "Martin Langhoff" <martin.langhoff@gmail.com>
Cc: "Junio C Hamano" <junkio@cox.net>, git@vger.kernel.org
Subject: Re: Unresolved issues #2 (shallow clone again)
Date: Sun, 7 May 2006 12:01:49 +0400	[thread overview]
Message-ID: <20060507120149.40e9f749.vsu@altlinux.ru> (raw)
In-Reply-To: <46a038f90605062308x53995076k7bf45f0aebcae0c6@mail.gmail.com>

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

On Sun, 7 May 2006 18:08:03 +1200 Martin Langhoff wrote:

> On 5/6/06, Junio C Hamano <junkio@cox.net> wrote:
> > "Martin Langhoff" <martin.langhoff@gmail.com> writes:
> > >
> > > It means that for a merge or checkout involving stuff we "don't have",
> > > it's trivial to know we are missing, and so we can  attempt a fetch of
> > > the missing objects or tell the user how to request them them before
> > > retrying.
> > >
> > > And in any case commits and trees are lightweight and compress well...
> >
> > Commit maybe, but is this based on a hard fact?
> 
> No hard facts here :( but I think it's reasonable to assume that the
> trees delta/compress reasonably well, as a given commit will change
> just a few entries in each tree.
> 
> I might try and hack a shallow local clone of the kernel and pack it
> tightly to see what it yields.

For linux v2.6.16:

7,3M commits-b41b04a36afebdba3b70b74f419fc7d97249bd7f.pack
 24M commits_trees-8397f1c2a885527acd07e2caa8c95df626451493.pack
 97M full-c7b2747a674ff55cb4a59dabebe419f191e360df.pack

For comparizon, a single version in packed form:

 51M v2.6.12-rc2-4f3526b6815eb63da6c43ed85be1494bb776e2c5.pack

Made with

git-rev-list v2.6.16 | git-pack-objects commits
git-rev-list --objects --no-blobs v2.6.16 | git-pack-objects commits_trees
git-rev-list --objects v2.6.16 | git-pack-objects full

and this hack to git-rev-list:

diff --git a/revision.c b/revision.c
index f2a9f25..b5a929e 100644
--- a/revision.c
+++ b/revision.c
@@ -636,6 +636,10 @@ int setup_revisions(int argc, const char
 				revs->blob_objects = 1;
 				continue;
 			}
+			if (!strcmp(arg, "--no-blobs")) {
+				revs->blob_objects = 0;
+				continue;
+			}
 			if (!strcmp(arg, "--objects-edge")) {
 				revs->tag_objects = 1;
 				revs->tree_objects = 1;

So trees are definitely not lightweight, and commits are rather large
too.

[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]

  parent reply	other threads:[~2006-05-07  8:02 UTC|newest]

Thread overview: 81+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-14  9:31 Recent unresolved issues Junio C Hamano
2006-04-14 16:02 ` Petr Baudis
     [not found] ` <20060414151030.11c64730.seanlkml@sympatico.ca>
2006-04-14 19:10   ` sean
2006-04-14 19:24 ` Petr Baudis
2006-04-14 22:56 ` Recent unresolved issues: shallow clone Carl Worth
2006-04-15  0:17   ` Johannes Schindelin
2006-04-15  0:25   ` Junio C Hamano
2006-04-15  2:11     ` Junio C Hamano
2006-04-14 23:52 ` Recent unresolved issues Linus Torvalds
2006-04-15  0:19   ` Linus Torvalds
2006-04-15  0:39     ` Linus Torvalds
2006-04-15  0:38   ` Junio C Hamano
2006-04-15  0:49     ` Linus Torvalds
2006-04-15  0:56       ` Linus Torvalds
2006-04-15  1:09         ` Linus Torvalds
2006-04-15  2:22           ` Junio C Hamano
2006-04-15  6:18         ` Junio C Hamano
2006-04-15  8:57           ` Junio C Hamano
2006-04-15 11:46             ` Johannes Schindelin
2006-04-15 16:59             ` Linus Torvalds
2006-04-15 17:17               ` Linus Torvalds
2006-04-16  8:14                 ` Junio C Hamano
2006-04-15  1:35       ` Junio C Hamano
2006-04-15  4:09         ` Linus Torvalds
2006-04-15  5:06           ` Junio C Hamano
2006-05-04  8:15 ` Unresolved issues #2 Junio C Hamano
2006-05-04  8:32   ` Jakub Narebski
2006-05-04  9:14     ` Junio C Hamano
2006-05-04  9:26       ` Jakub Narebski
2006-05-04  9:58   ` Petr Baudis
2006-05-04 15:45     ` Pavel Roskin
2006-05-04 17:01   ` Unresolved issues #2 (shallow clone again) Carl Worth
2006-05-05  0:25     ` Junio C Hamano
2006-05-05  5:17       ` Martin Langhoff
2006-05-05  5:23         ` Carl Worth
2006-05-05  5:48           ` Jakub Narebski
2006-05-05 15:10       ` Linus Torvalds
2006-05-05 15:18         ` Jakub Narebski
2006-05-05 15:59           ` Linus Torvalds
2006-05-06  6:23             ` Martin Langhoff
2006-05-06  7:10               ` Junio C Hamano
2006-05-07  6:08                 ` Martin Langhoff
2006-05-07  7:56                   ` Jeff King
2006-05-07 15:27                     ` Linus Torvalds
2006-05-08  4:24                       ` Jeff King
2006-05-08 15:32                         ` Linus Torvalds
2006-05-08  0:33                     ` Theodore Tso
2006-05-08  0:50                       ` Linus Torvalds
2006-05-08  1:26                         ` Theodore Tso
2006-05-08  2:04                           ` Linus Torvalds
2006-05-08  2:24                             ` Theodore Tso
2006-05-08  2:42                               ` Linus Torvalds
2006-05-07  8:01                   ` Sergey Vlasov [this message]
2006-05-07 23:27                     ` Martin Langhoff
2006-05-07 23:35                       ` Junio C Hamano
2006-05-07 23:44                         ` Martin Langhoff
2006-05-05 15:31         ` Carl Worth
2006-05-07 13:30       ` Jakub Narebski
2006-05-08  2:54         ` Junio C Hamano
2006-05-08  4:02           ` Jakub Narebski
2006-05-08  4:24           ` Jakub Narebski
2006-05-04 20:41   ` Unresolved issues #2 Daniel Barkalow
2006-05-04 21:33     ` Linus Torvalds
2006-05-06  5:58       ` Junio C Hamano
2006-05-06 15:26         ` Linus Torvalds
     [not found]           ` <20060506113549.48e553d1.seanlkml@sympatico.ca>
2006-05-06 15:35             ` sean
2006-05-06 16:30               ` Linus Torvalds
     [not found]                 ` <20060506125323.544c35db.seanlkml@sympatico.ca>
2006-05-06 16:53                   ` sean
2006-05-06 17:20                     ` Linus Torvalds
2006-05-06 21:16                       ` Junio C Hamano
2006-05-06 21:33                         ` Johannes Schindelin
2006-05-06 21:51                           ` Linus Torvalds
2006-05-07  9:39                           ` Junio C Hamano
2006-05-07  9:42                             ` Junio C Hamano
2006-05-07 11:31                             ` Johannes Schindelin
2006-05-07 11:38                             ` Jakub Narebski
2006-05-08  2:51                               ` Junio C Hamano
2006-05-07  0:41                         ` Jakub Narebski
2006-05-09 11:40   ` David Woodhouse
2006-05-09 11:53     ` Bertrand Jacquin
2006-05-09 13:09     ` Nicolas Pitre

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=20060507120149.40e9f749.vsu@altlinux.ru \
    --to=vsu@altlinux.ru \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.net \
    --cc=martin.langhoff@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).