* [BUG] "git diff FILE BRANCH:FILE" erroneously report FILE does not exist in BRANCH @ 2012-01-21 19:36 Stefano Lattarini 2012-01-21 21:33 ` Carlos Martín Nieto 2012-01-21 22:08 ` Junio C Hamano 0 siblings, 2 replies; 3+ messages in thread From: Stefano Lattarini @ 2012-01-21 19:36 UTC (permalink / raw) To: git Here is a complete reproducer for the bug: mkdir foo \ && cd foo \ && git init . \ && >README \ && git add README \ && git commit -m "for all" \ && git checkout -b devel \ && echo dev > README \ && git add README \ && git commit -m "for developers" \ && git diff devel:README master:README \ && git diff README master:README 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). Regards, and thanks for your amazing software, Stefano ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] "git diff FILE BRANCH:FILE" erroneously report FILE does not exist in BRANCH 2012-01-21 19:36 [BUG] "git diff FILE BRANCH:FILE" erroneously report FILE does not exist in BRANCH Stefano Lattarini @ 2012-01-21 21:33 ` Carlos Martín Nieto 2012-01-21 22:08 ` Junio C Hamano 1 sibling, 0 replies; 3+ messages in thread From: Carlos Martín Nieto @ 2012-01-21 21:33 UTC (permalink / raw) To: Stefano Lattarini; +Cc: git [-- Attachment #1: Type: text/plain, Size: 623 bytes --] On Sat, 2012-01-21 at 20:36 +0100, Stefano Lattarini wrote: > 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 [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 490 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] "git diff FILE BRANCH:FILE" erroneously report FILE does not exist in BRANCH 2012-01-21 19:36 [BUG] "git diff FILE BRANCH:FILE" erroneously report FILE does not exist in BRANCH Stefano Lattarini 2012-01-21 21:33 ` Carlos Martín Nieto @ 2012-01-21 22:08 ` Junio C Hamano 1 sibling, 0 replies; 3+ messages in thread From: Junio C Hamano @ 2012-01-21 22:08 UTC (permalink / raw) To: Stefano Lattarini; +Cc: git Stefano Lattarini <stefano.lattarini@gmail.com> writes: > && git diff README master:README http://thread.gmane.org/gmane.comp.version-control.git/188355/focus=188414 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-01-21 22:09 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-01-21 19:36 [BUG] "git diff FILE BRANCH:FILE" erroneously report FILE does not exist in BRANCH Stefano Lattarini 2012-01-21 21:33 ` Carlos Martín Nieto 2012-01-21 22:08 ` Junio C Hamano
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).