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

Re: How to compare different files in different branches

From
Jakub Narebski <jnareb@gmail.com>
Date
Jun 6, 2008, 12:38 UTC
Message-ID
<m3od6eyc0s.fsf@localhost.localdomain>
In-Reply-To
<m3skvqyc78.fsf@localhost.localdomain>
Jakub Narebski <jnareb@gmail.com> writes:
Show 9 quoted lines
> Nico -telmich- Schottelius <nico-git-20080606@schottelius.org> writes:
> 
> > I want to compare 'configure.in' from the master branch with
> > 'configure.ac' from the gpm-2-dev branch.
> [...]
> > I really think git can do that, but currently I do not see the right
> > way. So any idea on how to do that?
> 
>  $ git diff master:configure.in gpm-2-dev:configure.ac
 $ git diff -M master gpm-2-dev -- configure.in configure.ac
should also work.
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Jakub NarebskiNext: Teemu Likonen
Message 4 of 10 in “How to compare different files in different branches”
  1. Nico -telmich- SchotteliusJun 6, 2008
  2. Jonathan del StrotherJun 6, 2008
  3. Jakub NarebskiJun 6, 2008
  4. Jakub NarebskiJun 6, 2008
  5. Teemu LikonenJun 6, 2008
  6. Nico -telmich- SchotteliusJun 8, 2008
  7. Junio C HamanoJun 8, 2008
  8. Ask Bjørn HansenJun 15, 2008
  9. git-svn breaks svn when adding .svnNico -telmich- Schottelius, Jun 16, 2008
  10. Frederik DohrJun 16, 2008

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.