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

Re: [BUG] "git diff FILE BRANCH:FILE" erroneously report FILE does not exist in BRANCH

From
Carlos Martín Nieto <cmn@elego.de>
Date
Jan 21, 2012, 21:33 UTC
Message-ID
<1327181608.31804.27.camel@centaur.lab.cmartin.tk>
In-Reply-To
<4F1B13BB.8070603@gmail.com>
On Sat, 2012-01-21 at 20:36 +0100, Stefano Lattarini wrote:
Show 9 quoted lines
> I'd expect the last "git diff" to report the same diffs as the previous one;
> instead, it errors out with this bogus message:
> 
>   fatal: Path 'README' exists on disk, but not in 'master'.
> 
> Behaviour verified with git version 1.7.7.3 (installed from official Debian
> packages) and the latest git development version (1.7.9.rc0.69.gbddcef, from
> master).
> 

See http://thread.gmane.org/gmane.comp.version-control.git/188355 for earlier discussion. I haven't gotten around to see if I can fix it without upsetting too much code.

   cmn
Previous: Stefano LattariniNext: Junio C Hamano
Message 2 of 3 in “[BUG] "git diff FILE BRANCH:FILE" erroneously report FILE does not exist in BRANCH”
  1. Stefano LattariniJan 21, 2012
  2. Carlos Martín NietoJan 21, 2012
  3. Junio C HamanoJan 21, 2012

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.