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

Re: A puzzling omission from the Git book

From
Robert P. J. Day <rpjday@crashcourse.ca>
Date
Mar 29, 2019, 13:04 UTC
Message-ID
<alpine.LFD.2.21.1903290903430.14340@localhost.localdomain>
In-Reply-To
<373066205.20190329125548@ptoye.com>
On Fri, 29 Mar 2019, Peter Toye wrote:
> I'm looking for a way of comparing the files in two branches.
> According to Stack Overflow there's a git diff command but I can't
> see any reference to it in the book. Am I being more than usually
> thick?
  it should be just
  $ git diff <branch1> <branch2> -- <filename>
rday
-- 
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                  http://crashcourse.ca/dokuwiki

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
Previous: Peter Toye
Message 2 of 2 in “A puzzling omission from the Git book”
  1. Peter ToyeMar 29, 2019
  2. Robert P. J. DayMar 29, 2019

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.