Re: Any way to get complete diff up to a tag?
- From
- Greg Troxel <gdt@ir.bbn.com>
- Date
- May 6, 2010, 18:38 UTC
- Message-ID
- <rmiwrvgana0.fsf@fnord.ir.bbn.com>
- In-Reply-To
- <alpine.LFD.2.00.1005060955000.901@i5.linux-foundation.org>
Linus Torvalds <torvalds@linux-foundation.org> writes:
Show 8 quoted lines
> 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.