git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rene Herman <rene.herman@gmail.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Brian Gernhardt <benji@silverinsanity.com>, git@vger.kernel.org
Subject: Re: git branch --switch?
Date: Tue, 17 Apr 2007 18:55:07 +0200	[thread overview]
Message-ID: <4624FBEB.5080805@gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0704170938510.5473@woody.linux-foundation.org>

On 04/17/2007 06:44 PM, Linus Torvalds wrote:

> So you could have avoided the checkout completely, and done
> 
> 	git clone -l -s -n <a local linux repo> local
> 	git branch v20 v2.6.20
> 	git branch a v20
> 	git branch b v20
> 	git branch c v20
> 
> and now you'd have four branches that all point to the v20 thing, and none 
> of them are actually checked out. And all of that would have been 
> instantaneous, even on an old machine (apart fromt he clone itself, of 
> course ;)

Yes, this is exactly what I wanted, thank you. I'm only learning about "git 
branch" (as opposed to git checkout -b) now and it didn't in fact occur to 
me that I could specify that <start-point> although I should've noticed in 
the manpage and certainly in Lars' reply from a few minutes back -- managed 
to go into that and still not have it click.

Nothing left for me to desire...

Rene.

      reply	other threads:[~2007-04-17 16:57 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-17 13:36 git branch --switch? Rene Herman
2007-04-17 14:21 ` Alex Riesen
2007-04-17 14:29   ` Rene Herman
2007-04-17 14:46   ` Brian Gernhardt
2007-04-17 15:11     ` Alex Riesen
2007-04-17 15:44       ` Rene Herman
2007-04-17 14:31 ` Brian Gernhardt
2007-04-17 15:41   ` Rene Herman
2007-04-17 15:47     ` Rene Herman
2007-04-17 15:55     ` Lars Hjemli
2007-04-17 16:10       ` Rene Herman
2007-04-17 16:50         ` Randal L. Schwartz
2007-04-17 17:03           ` Rene Herman
2007-04-17 17:00         ` Lars Hjemli
2007-04-17 17:27           ` Rene Herman
2007-04-17 16:24     ` Rene Herman
2007-04-17 16:44       ` Linus Torvalds
2007-04-17 16:55         ` Rene Herman [this message]

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=4624FBEB.5080805@gmail.com \
    --to=rene.herman@gmail.com \
    --cc=benji@silverinsanity.com \
    --cc=git@vger.kernel.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).