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

Re: How to compare different files in different branches

From
NSNico -telmich- Schottelius <nico-git-20080606@schottelius.org>
Date
Jun 8, 2008, 09:47 UTC
Message-ID
<20080608094754.GB1521@denkbrett.schottelius.org>
In-Reply-To
<20080606123539.GA3119@mithlond.arda.local>
Thank you all for your fast answers!

I must confess I've overseen -M, as I saw --no-renames and searched for --renames.

Teemu Likonen [Fri, Jun 06, 2008 at 03:35:39PM +0300]:
Show 6 quoted lines
> Nico -telmich- Schottelius wrote (2008-06-06 14:24 +0200):
> [...]
> In general form it means:
> 
>   $ git diff <commit1>:<path1> <commit2>:<path2>
> [...]

Very nice syntax, somehow guessed that this is available, but didn't try... my fault.

Perhaps we should reference git-rev-list(1) from git-diff(1), too?
Sincerly
Nico
-- 
Think about Free and Open Source Software (FOSS).
http://nico.schottelius.org/documentations/foss/the-term-foss/

PGP: BFE4 C736 ABE5 406F 8F42  F7CF B8BE F92A 9885 188C
Previous: Teemu LikonenNext: Junio C Hamano
Message 6 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.