Re: [FEATURE REQUEST] git clone, just clone selected branches?
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Oct 10, 2007, 19:35 UTC
- Message-ID
- <Pine.LNX.4.64.0710102032330.4174@racer.site>
- In-Reply-To
- <011401c80b6f$1a11d1f0$04ac10ac@Jocke>
Hi,
On Wed, 10 Oct 2007, Joakim Tjernlund wrote:
Show 7 quoted lines
> To my knowlede a git clone always clones all branches from the remote > repo. I would like the possibly to clone selected branches, like > git clone <repo URL> -b master -b upstream > which will only fetch the master and upstream branch. > > I know I can use git remote to do this, but it is a bit clumsy when > starting a new repo.
This is why I suggest: since it is an itch of yours, just fix it. You are in the prime position to know when you're satisfied.
As a hint how to start: Junio dreamt of a git-clone which is a tiny wrapper around git-fetch and git-remote.
So you could start by writing a script which would be a replacement for git-clone.sh, and there you can also include the support for -b that you would like so much.
It would be nice, though, to keep this in separate patches, which you then submit to this list.
Thank you, Dscho