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

Re: git checkout creates strange '(null)'-branch

From
Junio C Hamano <gitster@pobox.com>
Date
May 10, 2012, 16:49 UTC
Message-ID
<7v4nronfqd.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CABPQNSbBwpVJUx9BSSO2nqAnPxUESZBz-GEqOPPEyqvdcutb6w@mail.gmail.com>
Erik Faye-Lund <kusmabite@gmail.com> writes:
Show 14 quoted lines
> On Tue, May 8, 2012 at 6:25 PM, Junio C Hamano <gitster@pobox.com> wrote:
> ...
>> Am I missing some corner cases that we _should_ error out, perhaps for the
>> sake of safety?
>
> I don't know, and I was kind of hoping someone would jump in and
> enlighten me of something, but that didn't happen (yet).
>
> I have a slight preference for this operation, though I'm not
> religious; it simply seem more consistent with other "git checkout"
> operation.
>
> Do you want me to prepare a proper patch including a variation of the
> test-case from the other patch?

I think an official looking patch would draw more attention from others and may uncover cases we did not anticipate if this turns out to be a bad idea.

Previous: Erik Faye-LundNext: Junio C Hamano
Message 7 of 12 in “git checkout creates strange '(null)'-branch”
  1. Erik Faye-LundMay 8, 2012
  2. Johannes SixtMay 8, 2012
  3. Erik Faye-LundMay 8, 2012
  4. Andreas SchwabMay 8, 2012
  5. Junio C HamanoMay 8, 2012
  6. Erik Faye-LundMay 10, 2012
  7. Junio C HamanoMay 10, 2012
  8. Junio C HamanoMay 8, 2012
  9. Junio C HamanoMay 8, 2012
  10. Junio C HamanoMay 8, 2012
  11. Erik Faye-LundMay 8, 2012
  12. Junio C HamanoMay 8, 2012

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.