From: Eric Frederich <eric.frederich@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: Get a git diff without taking index into account
Date: Wed, 18 Feb 2015 10:42:20 -0500 [thread overview]
Message-ID: <CAAoZyYPVopmP_bv7EZS912R4bxpzNm49_q0XXZXqa52dTDDM2Q@mail.gmail.com> (raw)
In-Reply-To: <CAPc5daU9km+gr-DHJzJF59mugwGeNX69H27E_DaoyBZnuzoiFw@mail.gmail.com>
This is from "git help diff". It seems to imply that I should be able to do it.
It mentions nothing of the index.
git diff [--options] <commit> [--] [<path>...]
This form is to view the changes you have in your working
tree relative to the named <commit>. You can use HEAD to compare it
with the latest commit, or a branch name
to compare with the tip of a different branch.
On Wed, Feb 18, 2015 at 10:37 AM, Junio C Hamano <gitster@pobox.com> wrote:
> On Wed, Feb 18, 2015 at 7:06 AM, Eric Frederich
> <eric.frederich@gmail.com> wrote:
>> # how can I compare a working directory to a commit without taking the
>> index into account?
>
> You don't.
next prev parent reply other threads:[~2015-02-18 15:42 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-18 14:57 Get a git diff without taking index into account Eric Frederich
2015-02-18 15:06 ` Eric Frederich
2015-02-18 15:37 ` Junio C Hamano
2015-02-18 15:42 ` Eric Frederich [this message]
2015-02-18 16:33 ` Junio C Hamano
2015-02-18 18:27 ` Eric Frederich
2015-02-18 18:32 ` Jeff King
2015-02-18 19:36 ` Eric Frederich
2015-02-18 21:38 ` Eric Frederich
2015-02-18 22:16 ` Junio C Hamano
2015-02-18 22:30 ` Jeff King
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=CAAoZyYPVopmP_bv7EZS912R4bxpzNm49_q0XXZXqa52dTDDM2Q@mail.gmail.com \
--to=eric.frederich@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.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 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).