From: Johannes Sixt Date: Thu, 06 May 2010 13:03:40 GMT Subject: Re: Any way to get complete diff up to a tag? Message-ID: <4BE2BE2C.8050403@viscovery.net> In-Reply-To: Am 5/6/2010 13:20, schrieb Peter Kjellerstedt: > Björn Steinbrink >> git internally knows about the empty tree, so you can use: >> git diff 4b825dc642cb6eb9a060e54bf8d69288fbee4904 v1.7.1 >> >> Björn > > Thank you, that was useful. However, I need to be able to do this > for an arbitrary repository, and that SHA seems to be specific for > the git repository. How do I get the SHA for the empty tree in an > arbitrary repository? Aha, so you think Björn et.al. were able to guess the SHA1 for your specific repository? ;) No, the empty tree is the empty tree, and its name is as cited above, no matter where in the universe you are. -- Hannes