Re: Any way to get complete diff up to a tag?

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

 



Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> writes:

> Well, you don't strictly speaking have to "remember" it, you can always 
> just re-generate it. The most straightforward way to do that is probably
>
> 	git hash-object -t tree --stdin < /dev/null
>
> although I admit that maybe we could have some syntax for "git diff" that 
> would do the "diff against empty tree" automatically. It does seem to be 
> conceptually a reasonable thing to do.

How about 

  git diff empty..

as if empty is a tag for the empty revision?  It works for 'git
checkout' already.

Attachment: pgpudflrcIRaM.pgp
Description: PGP signature


[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]