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

Strange output of 'git diff <revision1>:<file> <revision2>:<file>'

From
Jakub Narebski <jnareb@gmail.com>
Date
Jul 15, 2006, 10:20 UTC
Message-ID
<e9aff7$nk1$1@sea.gmane.org>
git diff output for files specified by revision is somewhat unexpected. 
  $ git diff <revision_1>:<file> <revision_2>:<file>
outputs the following diff metainfo
  diff --git a/<revision_2>:<file> b/<revision_2>:<file>
  index 5eabe06..2e87de4 100644
  --- a/<revision_2>:<file>
  +++ b/<revision_2>:<file>
Is it intended, or is it a bug? Looks like a bug to me...
git 1.4.0 (git-core-1.4.0-1.fc4 by Fedora Project).
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Next: Matthias Lederhofer
Message 1 of 4 in “Strange output of 'git diff <revision1>:<file> <revision2>:<file>'”
  1. Jakub NarebskiJul 15, 2006
  2. use the path as name from the revision:path syntax in setup_revisionsMatthias Lederhofer, Jul 15, 2006
  3. array index mixupMatthias Lederhofer, Jul 15, 2006
  4. Junio C HamanoJul 16, 2006

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.