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