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

Re: [PATCH] warn use of "git diff A..B"

From
Jay Soffian <jaysoffian@gmail.com>
Date
Mar 24, 2011, 18:16 UTC
Message-ID
<AANLkTiknZiZbEedOgJwRqwN_9APb2x_9opOFsXYe8cWJ@mail.gmail.com>
In-Reply-To
<AANLkTikjN_90UApfD2rRksDk8qXyE6pJHhd00Aw-Qe7Y@mail.gmail.com>
On Thu, Mar 24, 2011 at 2:11 PM, Jay Soffian <jaysoffian@gmail.com> wrote:
> Also, the fact that a one-sided '..' implies HEAD on the other side
Sorry, stray sentence. Ignore it.

But also, context matters. I don't get confused that Perl has a ".." operator which can be both a range operator and a flip-flop operator.

Of all the things that git overloads (reset, checkout, ...), this seems the least confusing to explain.

$0.03. :-)
j.
Previous: Jay SoffianNext: Junio C Hamano
Message 6 of 10 in “diff: remove dead code that flips arguments order”
  1. diff: remove dead code that flips arguments orderJunio C Hamano, Mar 23, 2011
  2. warn use of "git diff A..B"Junio C Hamano, Mar 23, 2011
  3. Jakub NarebskiMar 24, 2011
  4. Johannes SixtMar 25, 2011
  5. Jay SoffianMar 24, 2011
  6. Jay SoffianMar 24, 2011
  7. Junio C HamanoMar 24, 2011
  8. Ævar Arnfjörð BjarmasonMar 25, 2011
  9. Alex RiesenMar 27, 2011
  10. Junio C HamanoMar 28, 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.