Re: Notes on Using Git with Subprojects
- From
Jeff King <peff@peff.net>
- Date
- Sep 28, 2006, 03:52 UTC
- Message-ID
- <20060928035225.GA22006@coredump.intra.peff.net>
- In-Reply-To
- <451B45D6.1010006@gmail.com>
On Wed, Sep 27, 2006 at 08:47:34PM -0700, A Large Angry SCM wrote:
Show 6 quoted lines
> >A first step to this would be an argument to git-clone to allow cloning > >only a subset of refs. > Something like this? > > git-init-db > git-fetch <repository> <refspecs>
Exactly, but I was suggesting something more user-friendly (e.g., it's nice to use git-clone because it creates the remotes file). I was going to hack up a quick change to git-clone, but I think some thought needs to be given to semantics, especially with respect to tags (should it imply no tags? Only tags which point to refs we're already fetching?).
-Peff