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

Re: nit: missing branch error message

From
Linus Torvalds <torvalds@osdl.org>
Date
Sep 19, 2005, 17:06 UTC
Message-ID
<Pine.LNX.4.58.0509191005040.9106@g5.osdl.org>
In-Reply-To
<7vhdckfw40.fsf@assigned-by-dhcp.cox.net>
On Fri, 16 Sep 2005, Junio C Hamano wrote:
Show 8 quoted lines
> Jeff Garzik <jgarzik@pobox.com> writes:
> 
> >> [jgarzik@pretzel libata-dev]$ git checkout -f upstream
> >> fatal: Needed a single revision
> >
> > Better error message would be "hey dummy, branch doesn't exist"
> 
> Thanks.
Hell no.
I'm pissed.
	[torvalds@g5 linux]$ git checkout -b st-5481 0677b284b827fbac20961037982f2a6459a827a8
	hey dummy, branch '0677b284b827fbac20961037982f2a6459a827a8' doesn't exist.

This f*cking message needs to go! The old message may have been confused, but it was confused for a really good reason. The new message shows that you didn't understand what "git checkout" does.

		Linus
Previous: Junio C Hamano
Message 3 of 3 in “nit: missing branch error message”
  1. Jeff GarzikSep 16, 2005
  2. Junio C HamanoSep 16, 2005
  3. Linus TorvaldsSep 19, 2005

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.