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

Re: Confusion about diffing branches

From
Mike Hommey <mh@glandium.org>
Date
Aug 27, 2007, 07:50 UTC
Message-ID
<20070827075009.GA31438@glandium.org>
In-Reply-To
<7vlkbxmp50.fsf@gitster.siamese.dyndns.org>
On Mon, Aug 27, 2007 at 12:07:39AM -0700, Junio C Hamano <gitster@pobox.com> wrote:
> Both semantics of two-dot form and three-dot form are useful,
> and choice between the two depends on what you want out of the
> command.  You just need to know which one you want.

The problem is not about usefulness of these 2 forms, but consistency with the rest of the tools. If I go git log a..b, I won't get the set of commits involved in git diff a..b. In fact, git log a...b does. And git log a..b gives the commits involved in git diff a...b. Confusing, isn't it ? Moreover, this inconsistency isn't even documented in the manual pages.

Mike
Previous: Junio C HamanoNext: Francis Moreau
Message 6 of 14 in “Confusion about diffing branches”
  1. Shawn BohrerAug 26, 2007
  2. Junio C HamanoAug 27, 2007
  3. Shawn BohrerAug 27, 2007
  4. Mike HommeyAug 27, 2007
  5. Junio C HamanoAug 27, 2007
  6. Mike HommeyAug 27, 2007
  7. Francis MoreauAug 27, 2007
  8. Mike HommeyAug 27, 2007
  9. Junio C HamanoAug 27, 2007
  10. Mike HommeyAug 27, 2007
  11. Theodore TsoAug 27, 2007
  12. Junio C HamanoAug 27, 2007
  13. Theodore TsoAug 27, 2007
  14. Jakub NarebskiAug 27, 2007

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.