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

Re: [PATCH] builtin-checkout: Don't tell user that HEAD has moved before it has

From
Junio C Hamano <gitster@pobox.com>
Date
May 16, 2009, 19:57 UTC
Message-ID
<7vr5yolt1j.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20090516175444.GA1000@cumin.applehq.eu>
Daniel Cordero <theappleman@gmail.com> writes:
Show 7 quoted lines
> Previously, checkout would tell the user this message before moving HEAD,
> without regard to whether the upcoming move will result in success.
> If the move failed, this causes confusion.
>
> Show the message after the move, unless the move failed.
>
> Signed-off-by: Daniel Cordero <theappleman@gmail.com>
Thanks; the patch looks obviously good.  Can we have tests?
Previous: Daniel CorderoNext: Nanako Shiraishi
Message 3 of 4 in “[buglet] misleading error message from git checkout”
  1. Nanako ShiraishiMay 16, 2009
  2. builtin-checkout: Don't tell user that HEAD has moved before it hasDaniel Cordero, May 16, 2009
  3. Junio C HamanoMay 16, 2009
  4. test: checkout shouldn't say that HEAD has moved if it didn'tNanako Shiraishi, May 17, 2009

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.