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
Junio C Hamano <gitster@pobox.com>
Date
May 24, 2011, 21:24 UTC
Message-ID
<7vipsz7pwq.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20110524202723.GG584@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 9 quoted lines
>> @@ -668,8 +671,6 @@ static void orphaned_commit_warning(struct commit *commit)
>>  		die("internal error in revision walk");
>>  	if (!(commit->object.flags & UNINTERESTING))
>>  		suggest_reattach(commit, &revs);
>> -	else
>> -		describe_detached_head("Previous HEAD position was", commit);
>>  }
>
> Wait, I thought we were keeping this, per your argument above?

Well, I do not have very strong preference either way. I didn't really argue for or against. I just explained it might be useful.

Will resurrect.
Previous: Jeff King
Message 8 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.