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

Re: diff <commit> using 3-dot behavior

From
RDRobert Dailey <rcdailey.lists@gmail.com>
Date
Aug 24, 2016, 16:10 UTC
Message-ID
<CAHd499DTkxAmLhEyGc4t+g1gFBnJpVRwgS5dhRRE=E+pUU5WDg@mail.gmail.com>
In-Reply-To
<9efbdfbb-4c82-1355-1f89-5edca7135179@drmicha.warpmail.net>

On Wed, Aug 24, 2016 at 11:00 AM, Michael J Gruber <git@drmicha.warpmail.net> wrote:

Show 15 quoted lines
> The 3-dot notation means:
>
> Show the difference between the merge-base of master and topic, and topic.
>
> I'm not completely sure, but I guess what you want is:
>
> Show the difference between the merge-base of master and topic, and the
> worktree.
>
> You can accomplish this with:
>
> git diff $(git merge-base master topic)
>
> I guess a shorter notation for that could come in handy. OTOH, I usually
> diff against HEAD in a situation like that.

Great solution. I feel silly now, the answer ended up being rather obvious. I can create an alias for that. But I can't diff against HEAD because then I am not seeing a diff of changes already committed. Thanks for your help.

Previous: Michael J GruberNext: Junio C Hamano
Message 3 of 6 in “diff <commit> using 3-dot behavior”
  1. Robert DaileyAug 24, 2016
  2. Michael J GruberAug 24, 2016
  3. Robert DaileyAug 24, 2016
  4. Junio C HamanoAug 24, 2016
  5. Jacob KellerAug 24, 2016
  6. Jeff KingAug 24, 2016

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.