From: Daniel Barkalow <barkalow@iabervon.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Josef Weidendorfer <Josef.Weidendorfer@gmx.de>,
Junio C Hamano <junkio@cox.net>,
Martin Waitz <tali@admingilde.org>, Eric Lesh <eclesh@ucla.edu>,
Matthieu Moy <Matthieu.Moy@imag.fr>,
git@vger.kernel.org
Subject: Re: .gitlink for Summer of Code
Date: Tue, 27 Mar 2007 16:54:33 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.64.0703271602110.6485@iabervon.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0703271115580.6730@woody.linux-foundation.org>
On Tue, 27 Mar 2007, Linus Torvalds wrote:
> On Tue, 27 Mar 2007, Daniel Barkalow wrote:
> >
> > Is it fair to say that subproject support means that there's a use case
> > where everybody will need shallow clones? And that it points out natural
> > triggers for shallowness?
>
> No.
>
> I personally don't believe in shallow clones. And I *certainly* don't
> believe that it has anything to do with subprojects. So people may want
> shallow clones, but it's at least independent of the issue of submodules.
>
> With subprojects, it's not that you don't want the history. It's just that
> you don't want the history for *all* projects. Most people care about a
> very small subset.
Are you talking about submodule history, or submodule state? If they care
about any state but not the corresponding history, they need to do a
shallow clone of the subproject, right?
Or are you assuming that people only want to have every subproject either
there with full history or entirely absent?
I think that one common thing would be to care about the sequence of linux
kernel snapshots selected by openembedded in their commits, without caring
about the linux kernel history in between those snapshots. And they
probably even want to bisect the superproject (still without getting into
kernel versions that were never in superproject commits), so they can
track down what caused their PDA to stop booting, where it's not clear
which program is even responsible. Maybe once the bug is down to a single
superproject commit, they'd want the history for the responsible
subproject.
In any case, I think that the superproject object database needs to keep
track of where references came from (e.g., if you pull somebody's
superproject commit, and the point of that commit is to use a
custom-modified subproject commit, that subproject commit must come from
the same person, and you need to be able to fetch it correctly after the
fact if you don't get it immediately, even if you've personally forgotten
the URL).
> (The exception, of course, is when the superproject simply isn't that big,
> and only has a couple of subprojects. In git, for example, the xdiff stuff
> could be a subproject if you wanted to do it that way. But then, the
> subproject isn't a size issue, it's purely an organizational thing, and
> there is no argument for/against shallowness there either).
Of course. And to make this use case also viable, it's probably necessary
to be able to tell git to fetch these subprojects automatically, because
you'll be sad if you leave for a long plane trip with the latest git but
not the xdiff it uses. (Clearly an application for .gitattributes, but
that'd be extra fun to implement.)
-Daniel
*This .sig left intentionally blank*
next prev parent reply other threads:[~2007-03-27 20:54 UTC|newest]
Thread overview: 61+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-25 12:30 .gitlink for Summer of Code Eric Lesh
2007-03-25 15:20 ` Matthieu Moy
2007-03-25 20:39 ` Shawn O. Pearce
2007-03-25 20:54 ` Johannes Schindelin
2007-03-25 21:03 ` Shawn O. Pearce
2007-03-25 20:55 ` Junio C Hamano
2007-03-25 21:05 ` Shawn O. Pearce
2007-03-27 3:40 ` Petr Baudis
2007-03-26 17:16 ` Eric Lesh
2007-03-26 17:22 ` Matthieu Moy
2007-03-26 17:38 ` Eric Lesh
2007-03-26 18:35 ` Martin Waitz
2007-03-26 19:33 ` Josef Weidendorfer
2007-03-26 19:49 ` Matthieu Moy
2007-03-26 23:14 ` Josef Weidendorfer
2007-03-27 16:59 ` Matthieu Moy
2007-03-26 22:03 ` Martin Waitz
2007-03-26 22:51 ` Junio C Hamano
2007-03-26 23:16 ` Submodule object store Martin Waitz
2007-03-26 23:28 ` Junio C Hamano
2007-03-26 23:36 ` Martin Waitz
2007-03-26 23:20 ` David Lang
2007-03-26 23:55 ` Martin Waitz
2007-03-26 23:40 ` David Lang
2007-03-27 15:25 ` Martin Waitz
2007-03-27 16:53 ` David Lang
2007-03-27 0:29 ` Junio C Hamano
2007-03-27 14:28 ` Martin Waitz
2007-03-27 11:25 ` Uwe Kleine-König
2007-03-27 11:50 ` Uwe Kleine-König
2007-03-27 15:53 ` Martin Waitz
2007-03-27 16:56 ` Josef Weidendorfer
2007-03-27 16:44 ` Martin Waitz
2007-03-27 17:22 ` Uwe Kleine-König
2007-03-27 18:41 ` Linus Torvalds
2007-03-27 19:42 ` Uwe Kleine-König
2007-03-27 19:53 ` Linus Torvalds
2007-03-27 19:59 ` Linus Torvalds
2007-03-27 15:46 ` Martin Waitz
2007-03-26 23:17 ` .gitlink for Summer of Code Josef Weidendorfer
[not found] ` <Pine.LNX.4.64.0703270952020. 6730@woody.linux-foundation.org>
2007-03-26 23:24 ` Junio C Hamano
2007-03-27 17:04 ` Linus Torvalds
2007-03-27 17:00 ` David Lang
2007-03-27 18:15 ` Linus Torvalds
2007-03-27 17:35 ` Martin Waitz
2007-03-27 18:09 ` Daniel Barkalow
2007-03-27 18:19 ` Linus Torvalds
2007-03-27 20:54 ` Daniel Barkalow [this message]
2007-03-27 21:11 ` Linus Torvalds
2007-03-27 20:54 ` David Lang
2007-03-27 23:31 ` Jakub Narebski
2007-03-27 23:20 ` David Lang
2007-03-27 18:36 ` Steven Grimm
2007-03-27 20:02 ` Daniel Barkalow
2007-03-27 21:27 ` Linus Torvalds
2007-03-26 23:00 ` Josef Weidendorfer
2007-03-26 23:27 ` Martin Waitz
2007-03-26 17:31 ` Jakub Narebski
2007-03-26 18:21 ` Matthieu Moy
2007-03-27 0:48 ` Jakub Narebski
2007-03-25 20:46 ` Shawn O. Pearce
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=Pine.LNX.4.64.0703271602110.6485@iabervon.org \
--to=barkalow@iabervon.org \
--cc=Josef.Weidendorfer@gmx.de \
--cc=Matthieu.Moy@imag.fr \
--cc=eclesh@ucla.edu \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
--cc=tali@admingilde.org \
--cc=torvalds@linux-foundation.org \
/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).