{"thread":{"id":"29420","subject":"[BUG] \"git diff FILE BRANCH:FILE\" erroneously report FILE does not exist in BRANCH","startedAt":"2012-01-21T19:36:27Z","lastAt":"2012-01-21T22:08:57Z","messageCount":3,"participants":["Stefano Lattarini","Carlos Martín Nieto","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"182902","messageId":"4F1B13BB.8070603@gmail.com","threadId":"29420","inReplyTo":null,"subject":"[BUG] \"git diff FILE BRANCH:FILE\" erroneously report FILE does not exist in BRANCH","fromName":"Stefano Lattarini","fromEmail":"stefano.lattarini@gmail.com","sentAt":"2012-01-21T19:36:27Z","receivedAt":"2012-01-21T19:36:27Z","isPatch":false,"sender":{"key":"stefano.lattarini@gmail.com","avatar":"https://avatars.githubusercontent.com/u/1429199?v=4"},"body":"Here is a complete reproducer for the bug:\n\nmkdir foo \\\n  && cd foo \\\n  && git init . \\\n  && >README \\\n  && git add README \\\n  && git commit -m \"for all\" \\\n  && git checkout -b devel \\\n  && echo dev > README \\\n  && git add README \\\n  && git commit -m \"for developers\" \\\n  && git diff devel:README master:README \\\n  && git diff README master:README\n\nI'd expect the last \"git diff\" to report the same diffs as the previous one;\ninstead, it errors out with this bogus message:\n\n  fatal: Path 'README' exists on disk, but not in 'master'.\n\nBehaviour verified with git version 1.7.7.3 (installed from official Debian\npackages) and the latest git development version (1.7.9.rc0.69.gbddcef, from\nmaster).\n\nRegards, and thanks for your amazing software,\n  Stefano\n"},{"id":"182906","messageId":"1327181608.31804.27.camel@centaur.lab.cmartin.tk","threadId":"29420","inReplyTo":"4F1B13BB.8070603@gmail.com","subject":"Re: [BUG] \"git diff FILE BRANCH:FILE\" erroneously report FILE does not exist in BRANCH","fromName":"Carlos Martín Nieto","fromEmail":"cmn@elego.de","sentAt":"2012-01-21T21:33:28Z","receivedAt":"2012-01-21T21:33:28Z","isPatch":false,"sender":{"key":"cmn@elego.de","avatar":"https://avatars.githubusercontent.com/u/335443?v=4"},"body":"On Sat, 2012-01-21 at 20:36 +0100, Stefano Lattarini wrote:\n> I'd expect the last \"git diff\" to report the same diffs as the previous one;\n> instead, it errors out with this bogus message:\n> \n>   fatal: Path 'README' exists on disk, but not in 'master'.\n> \n> Behaviour verified with git version 1.7.7.3 (installed from official Debian\n> packages) and the latest git development version (1.7.9.rc0.69.gbddcef, from\n> master).\n> \n\nSee http://thread.gmane.org/gmane.comp.version-control.git/188355 for\nearlier discussion. I haven't gotten around to see if I can fix it\nwithout upsetting too much code.\n\n   cmn\n"},{"id":"182909","messageId":"7v62g4btdy.fsf@alter.siamese.dyndns.org","threadId":"29420","inReplyTo":"4F1B13BB.8070603@gmail.com","subject":"Re: [BUG] \"git diff FILE BRANCH:FILE\" erroneously report FILE does not exist in BRANCH","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2012-01-21T22:08:57Z","receivedAt":"2012-01-21T22:08:57Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Stefano Lattarini <stefano.lattarini@gmail.com> writes:\n\n>   && git diff README master:README\n\nhttp://thread.gmane.org/gmane.comp.version-control.git/188355/focus=188414\n"}]}