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

Re: Compare two diffs on the command line?

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 4, 2015, 18:10 UTC
Message-ID
<CAPc5daVvXNWdAwiNKnQT45p03msTBEyBUq7y+ggRq0e95=_bAQ@mail.gmail.com>
In-Reply-To
<55E9DC44.90303@ubuntu.com>
On Fri, Sep 4, 2015 at 11:00 AM, Phil Susi <psusi@ubuntu.com> wrote:
> If you have a commit that exists on two branches, in gitk you can mark one,
> then select the other and choose to compare the two.  This results in a diff
> of the two diffs, rather than a diff between the two trees, which include
> many other changes that have nothing to do with either commit.
I think you are looking for the interdiff(1) tool.
Previous: Phil SusiNext: Phil Susi
Message 2 of 3 in “Compare two diffs on the command line?”
  1. Phil SusiSep 4, 2015
  2. Junio C HamanoSep 4, 2015
  3. Phil SusiSep 4, 2015

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.