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

Re: Why are commits on detached heads good, again?

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 7, 2007, 15:32 UTC
Message-ID
<Pine.LNX.4.63.0702071629210.22628@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<20070207142642.23503.qmail@science.horizon.com>
Hi,
On Wed, 7 Feb 2007, linux@horizon.com wrote:
> Can someone explain why committing on top of a detached head is a killer 
> feature and thinking up a name sooner rather than later is a huge 
> inconvenience?
I agree that "because I could" is a weak excuse for this feature.

But actually, I think it is more convenient to be able to play around with an idea, properly committing simple steps, and finally, if, and only if, it works as expected, make a topic branch of it.

IOW:
checkout v2.6.20
<hackhackhack>
commit
<hackhackhack>
commit
<hackhack..
	Oh darn, it _cannot_ work after all, so let's forget about it.
No hard thinking of a proper name, no cleanup required.
Yeah, maybe not a killer feature, but maybe a butcher feature ;-)

Ciao, Dscho

Previous: Nicolas Pitre
Message 3 of 3 in “Why are commits on detached heads good, again?”
  1. linux@horizon.comFeb 7, 2007
  2. Nicolas PitreFeb 7, 2007
  3. Johannes SchindelinFeb 7, 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.