Re: Get a git diff without taking index into account

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> wrote:
> On Wed, Feb 18, 2015 at 7:06 AM, Eric Frederich
> <eric.frederich@xxxxxxxxx> wrote:
>> # how can I compare a working directory to a commit without taking the
>> index into account?
>
> You don't.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]