git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rene Herman <rene.herman@gmail.com>
To: Alex Riesen <raa.lkml@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: git branch --switch?
Date: Tue, 17 Apr 2007 16:29:52 +0200	[thread overview]
Message-ID: <4624D9E0.7080303@gmail.com> (raw)
In-Reply-To: <81b0412b0704170721i2b64999aqbd0d7489074454d6@mail.gmail.com>

On 04/17/2007 04:21 PM, Alex Riesen wrote:

> On 4/17/07, Rene Herman <rene.herman@gmail.com> wrote:

>> Is it possible to switch the current branch without checking it out?

[ ... ]

> Kind of. It can be done with git-read-tree. I.e.:
> 
>  $ git-read-tree --index-output=.git/tmp-index <branch-name> && \
>     mv tmp-index .git/index && \
>     git update-ref HEAD <branch-name>

Eew. Thank you. Maybe...

Rene.

  reply	other threads:[~2007-04-17 14:32 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 [this message]
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

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=4624D9E0.7080303@gmail.com \
    --to=rene.herman@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=raa.lkml@gmail.com \
    /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).