From: Michael J Gruber <git@drmicha.warpmail.net>
To: Avery Pennarun <apenwarr@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>,
Elijah Newren <newren@gmail.com>,
Git Mailing List <git@vger.kernel.org>
Subject: Re: 'git diff' against files outside a git repo
Date: Mon, 27 Sep 2010 09:38:37 +0200 [thread overview]
Message-ID: <4CA049FD.5040100@drmicha.warpmail.net> (raw)
In-Reply-To: <AANLkTikJ-SN5xmwqhEHcESfQCWvGjSHp3OK1Hi4+0jBL@mail.gmail.com>
Avery Pennarun venit, vidit, dixit 26.09.2010 11:38:
> On Sun, Sep 26, 2010 at 12:13 AM, Junio C Hamano <gitster@pobox.com> wrote:
>> 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.
>
> Ha, of course. And I do that all the time, so it's silly that I
> somehow forgot for the duration of that email.
>
> The real surprise was that this *wasn't* the meaning when I was
> outside a git tree :)
Well, DWIM really is DWYTIM ;)
Michael
next prev parent reply other threads:[~2010-09-27 7:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-24 22:23 'git diff' against files outside a git repo Avery Pennarun
2010-09-24 22:30 ` Elijah Newren
2010-09-25 7:45 ` Avery Pennarun
2010-09-26 7:13 ` Junio C Hamano
2010-09-26 9:38 ` Avery Pennarun
2010-09-27 7:38 ` Michael J Gruber [this message]
2010-09-24 22:30 ` Brandon Casey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CA049FD.5040100@drmicha.warpmail.net \
--to=git@drmicha.warpmail.net \
--cc=apenwarr@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=newren@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.