All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <junkio@cox.net>
To: Lars Hjemli <hjemli@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] checkout: allow full refnames for local branches
Date: Wed, 09 May 2007 01:48:57 -0700	[thread overview]
Message-ID: <7v7iriwfeu.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <11787000032830-git-send-email-hjemli@gmail.com> (Lars Hjemli's message of "Wed, 9 May 2007 10:40:03 +0200")

Lars Hjemli <hjemli@gmail.com> writes:

> This teaches git-checkout to strip the prefix 'refs/heads/' from the
> supplied <branch> argument, to make
>
> 	git-checkout refs/heads/master
>
> behave like
>
> 	git-checkout master
>
> The former command would detach HEAD.
>
> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
> ---
>
> I'm undecided on wheter this is a bugfix or a new feature. It certainly
> introduces new behaviour, but it passes all the tests.

Why is this necessary, may I ask?

  reply	other threads:[~2007-05-09  8:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-09  8:40 [PATCH] checkout: allow full refnames for local branches Lars Hjemli
2007-05-09  8:48 ` Junio C Hamano [this message]
2007-05-09  9:07   ` Lars Hjemli
2007-05-09 18:54     ` Shawn O. Pearce
2007-05-09 20:01       ` Lars Hjemli
2007-05-09 20:11         ` Shawn O. Pearce
2007-05-09 20:38           ` Lars Hjemli
2007-05-09 19:37     ` Junio C Hamano
2007-05-09 19:55       ` Lars Hjemli

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=7v7iriwfeu.fsf@assigned-by-dhcp.cox.net \
    --to=junkio@cox.net \
    --cc=git@vger.kernel.org \
    --cc=hjemli@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.