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

Re: [PATCH] checkout: honor advice.detachedHead when reattaching to a branch

From
Jeff King <peff@peff.net>
Date
May 6, 2011, 23:21 UTC
Message-ID
<20110506232118.GA24794@sigill.intra.peff.net>
In-Reply-To
<7vbozfxwon.fsf@alter.siamese.dyndns.org>
On Fri, May 06, 2011 at 03:59:20PM -0700, Junio C Hamano wrote:
Show 6 quoted lines
> > I tend to think (3) is now just useless.
> 
> Quite the contrary. If you do not want to pay the price of (4) that is
> useless most of the time, (3) is a cheap, space efficient and useful
> information that is essential to allow you to get rid of (4) without
> having to look at reflog.

Sorry, I should have been more clear. If you turn off orphan-checking, (3) is just as useful as it always was. But _if_ you have orphan-checking turned on, and it comes up negative, showing (3) is not particularly useful. You already know you are not losing commits.

-Peff
Previous: Junio C HamanoNext: Jeff King
Message 4 of 8 in “checkout: honor advice.detachedHead when reattaching to a branch”
  1. checkout: honor advice.detachedHead when reattaching to a branchJunio C Hamano, May 6, 2011
  2. Jeff KingMay 6, 2011
  3. Junio C HamanoMay 6, 2011
  4. Jeff KingMay 6, 2011
  5. Jeff KingMay 7, 2011
  6. Junio C HamanoMay 24, 2011
  7. Jeff KingMay 24, 2011
  8. Junio C HamanoMay 24, 2011

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.