Re: Get a git diff without taking index into account
- From
Eric Frederich <eric.frederich@gmail.com>
- Date
- Feb 18, 2015, 15:42 UTC
- Message-ID
- <CAAoZyYPVopmP_bv7EZS912R4bxpzNm49_q0XXZXqa52dTDDM2Q@mail.gmail.com>
- 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:
Show 6 quoted lines
> 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.