Re: 'git diff' against files outside a git repo
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 26, 2010, 07:13 UTC
- Message-ID
- <7vwrq9m0y0.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <AANLkTikpPQM4GyP5O7+aw6_P9_1DdxUjTzpH=WhzW=wK@mail.gmail.com>
Avery Pennarun <apenwarr@gmail.com> writes:
> Oddly, 'git diff file1 file2' *doesn't* work when file1 and file2 are > in a working tree; git tries to diff something, apparently, but I > don't know what.
Heh, I thought you've been using git long enough that you sh/would know that you are comparing the index and the working tree, using "file1" and "file2" as pathspecs.