From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Joakim Tjernlund <joakim.tjernlund@transmode.se>
Cc: git@vger.kernel.org
Subject: Re: [FEATURE REQUEST] git clone, just clone selected branches?
Date: Wed, 10 Oct 2007 20:35:02 +0100 (BST) [thread overview]
Message-ID: <Pine.LNX.4.64.0710102032330.4174@racer.site> (raw)
In-Reply-To: <011401c80b6f$1a11d1f0$04ac10ac@Jocke>
Hi,
On Wed, 10 Oct 2007, Joakim Tjernlund wrote:
> 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
next prev parent reply other threads:[~2007-10-10 19:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-10 18:55 [FEATURE REQUEST] git clone, just clone selected branches? Joakim Tjernlund
2007-10-10 19:35 ` Johannes Schindelin [this message]
2007-10-10 21:25 ` Joakim Tjernlund
2007-10-10 21:56 ` Johannes Schindelin
2007-10-10 22:41 ` Joakim Tjernlund
2007-10-10 23:01 ` Johannes Schindelin
2007-10-10 19:38 ` Linus Torvalds
2007-10-10 21:36 ` Joakim Tjernlund
2007-10-11 9:18 ` Andreas Ericsson
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.0710102032330.4174@racer.site \
--to=johannes.schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=joakim.tjernlund@transmode.se \
/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).