All of lore.kernel.org
 help / color / mirror / Atom feed
* [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

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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.