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

Re: [PATCH] checkout -d: explicitly detach HEAD even when switching to the tip of a branch

From
Alex Riesen <raa.lkml@gmail.com>
Date
Mar 29, 2007, 17:10 UTC
Message-ID
<20070329171024.GA2809@steel.home>
In-Reply-To
<200703291044.l2TAig5M021533@localhost.localdomain>
Xavier Maillard, Thu, Mar 29, 2007 12:44:42 +0200:
Show 6 quoted lines
>    This allows you to detach your HEAD and place it at such a
> 
>        $ git checkout -d master
> 
> Hum, excuse my ignorance, but can you explain what exactly could
> be a use case of this ?

A throw-away or an experimental work. A commit importer which cares about the branch it commits on: to update the branch reference only when it has reached a stable state.

Previous: Xavier MaillardNext: Xavier Maillard
Message 3 of 8 in “checkout -d: explicitly detach HEAD even when switching to the tip of a branch”
  1. checkout -d: explicitly detach HEAD even when switching to the tip of a branchJunio C Hamano, Mar 29, 2007
  2. Xavier MaillardMar 29, 2007
  3. Alex RiesenMar 29, 2007
  4. Xavier MaillardMar 29, 2007
  5. Jakub NarebskiMar 31, 2007
  6. Xavier MaillardMar 31, 2007
  7. Junio C HamanoApr 4, 2007
  8. Linus TorvaldsApr 4, 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.