git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] checkout: allow full refnames for local branches

From
Junio C Hamano <junkio@cox.net>
Date
May 9, 2007, 08:48 UTC
Message-ID
<7v7iriwfeu.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<11787000032830-git-send-email-hjemli@gmail.com>
Lars Hjemli <hjemli@gmail.com> writes:
Show 16 quoted lines
> 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?
Previous: Lars HjemliNext: Lars Hjemli
Message 2 of 9 in “checkout: allow full refnames for local branches”
  1. checkout: allow full refnames for local branchesLars Hjemli, May 9, 2007
  2. Junio C HamanoMay 9, 2007
  3. Lars HjemliMay 9, 2007
  4. Shawn O. PearceMay 9, 2007
  5. Lars HjemliMay 9, 2007
  6. Shawn O. PearceMay 9, 2007
  7. Lars HjemliMay 9, 2007
  8. Junio C HamanoMay 9, 2007
  9. Lars HjemliMay 9, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.