From: Linus Torvalds Date: Thu, 03 Apr 2008 17:16:29 GMT Subject: Re: File info from SHA ID Message-ID: In-Reply-To: <47F50CC5.20502@melosgmbh.de> On Thu, 3 Apr 2008, Christoph Duelli wrote: > > Given (only) a SHA ID (say from a file's $ID$ expansion), is it possible to > determine the file's name, date of commit etc? Not directly, no. But you can get it indirectly with a number of variations on git whatchanged --raw --no-abbrev and then just searching for that SHA1 ID in the result. That will also show you where in the history that SHA1 came to be or went away. The SHA1 itself is _purely_ about the actual contents of the file, so it has no bearing on where that file actually exists, and two identical files in different places will have the same SHA1. So no SHA1 -> filename mapping can exist, but you can figure out where in the tree or history it existed if you just have the full repository. Linus