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

Re: [RFC v2 1/1] refspec: add support for negative refspecs

From
Jacob Keller <jacob.keller@gmail.com>
Date
Aug 24, 2020, 19:26 UTC
Message-ID
<CA+P7+xp_ajhC_vN0jLY6AVS+cSgLNK5SeybxSwoT16ripUdqkw@mail.gmail.com>
In-Reply-To
<xmqqk0xo53pi.fsf@gitster.c.googlers.com>
On Mon, Aug 24, 2020 at 10:55 AM Junio C Hamano <gitster@pobox.com> wrote:
Show 7 quoted lines
>
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
>
> > The `?:` operator is not supported e.g. by Visual C. Let's not use it.
>
> Thanks.  IIRC that was GNU extension?
>
Yea, probably.

From wikipedia, [1], "In GNU C and C++ (that is: in C and C++ with GCC extensions), the second operand of the ternary operator is optional. This has been the case since at least GCC 2.95.3 (March 2001), and seems to the original elvis operator."

Thanks, Jake

[1] https://en.wikipedia.org/wiki/Elvis_operator
Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 10 in “[RFC v2 0/1] implement support for negative refspecs”
  1. Jacob KellerAug 21, 2020
  2. 1/1 refspec: add support for negative refspecsJacob Keller, Aug 21, 2020
  3. Johannes SchindelinAug 22, 2020
  4. Jacob KellerAug 24, 2020
  5. Junio C HamanoAug 24, 2020
  6. Jacob KellerAug 24, 2020
  7. Junio C HamanoSep 17, 2020
  8. Junio C HamanoSep 18, 2020
  9. Jacob KellerSep 24, 2020
  10. Jacob KellerSep 24, 2020

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.