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

Re: [RFC/PATCH] checkout: allow dwim for branch creation for "git checkout $branch --"

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 16, 2013, 21:39 UTC
Message-ID
<xmqq7gdc6gl8.fsf@gitster.dls.corp.google.com>
In-Reply-To
<vpqob7huhyw.fsf@anie.imag.fr>
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
Show 15 quoted lines
> Duy Nguyen <pclouds@gmail.com> writes:
>
>> has_dash_dash is calculated as (argc > 1) && !strcmp(argv[1], "--"),
>> so when argc == 1, the has_dash_dash must be zero, the "&&
>> !has_dash_dash" is redundant.
>
> Yes, but I'd rather not have to read the detailed definition of
> has_dash_dash to understand the code. With my version, the name of the
> variable is actually sufficient to understand.
>
>> But it makes me wonder what we do with "git checkout abc def -- xyz".
>
> Ouch. Both old and new say
> ...
> I'll resend, together with tweaks to the first patch.

Did anything further happen to this discussion? Is v3 the version with agreement among the list members I just should pick up?

Previous: Duy NguyenNext: Matthieu Moy
Message 5 of 7 in “checkout: allow dwim for branch creation for "git checkout $branch --"”
  1. checkout: allow dwim for branch creation for "git checkout $branch --"Matthieu Moy, Sep 25, 2013
  2. Duy NguyenSep 25, 2013
  3. Matthieu MoySep 25, 2013
  4. Duy NguyenSep 25, 2013
  5. Junio C HamanoOct 16, 2013
  6. Matthieu MoyOct 17, 2013
  7. Junio C HamanoOct 17, 2013

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.