{"thread":{"id":"50837","subject":"A puzzling omission from the Git book","startedAt":"2019-03-29T13:02:29Z","lastAt":"2019-03-29T13:04:26Z","messageCount":2,"participants":["Peter Toye","Robert P. J. Day"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"372695","messageId":"373066205.20190329125548@ptoye.com","threadId":"50837","inReplyTo":null,"subject":"A puzzling omission from the Git book","fromName":"Peter Toye","fromEmail":"git@ptoye.com","sentAt":"2019-03-29T12:55:48Z","receivedAt":"2019-03-29T13:02:29Z","isPatch":false,"sender":{"key":"git@ptoye.com","avatar":null},"body":"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?\n\nThe Git Gui app doesn't seem to have that command in it either. A bit frustrating.\n\n \nYours,\n\nPeter\nmailto:git@ptoye.com\nwww.ptoye.com\n\n"},{"id":"372696","messageId":"alpine.LFD.2.21.1903290903430.14340@localhost.localdomain","threadId":"50837","inReplyTo":"373066205.20190329125548@ptoye.com","subject":"Re: A puzzling omission from the Git book","fromName":"Robert P. J. Day","fromEmail":"rpjday@crashcourse.ca","sentAt":"2019-03-29T13:04:20Z","receivedAt":"2019-03-29T13:04:26Z","isPatch":false,"sender":{"key":"rpjday@crashcourse.ca","avatar":"https://avatars.githubusercontent.com/u/226084077?v=4"},"body":"On Fri, 29 Mar 2019, Peter Toye wrote:\n\n> I'm looking for a way of comparing the files in two branches.\n> According to Stack Overflow there's a git diff command but I can't\n> see any reference to it in the book. Am I being more than usually\n> thick?\n\n  it should be just\n\n  $ git diff <branch1> <branch2> -- <filename>\n\nrday\n\n-- \n\n========================================================================\nRobert P. J. Day                                 Ottawa, Ontario, CANADA\n                  http://crashcourse.ca/dokuwiki\n\nTwitter:                                       http://twitter.com/rpjday\nLinkedIn:                               http://ca.linkedin.com/in/rpjday\n========================================================================\n"}]}