From: Caleb Cushing Date: Sun, 08 Feb 2009 12:22:31 GMT Subject: Re: checking sha1's of files Message-ID: <81bfc67a0902080422s7f12d86ft5196c184c06385f9@mail.gmail.com> In-Reply-To: <20090208111343.GC14359@coredump.intra.peff.net> > So if I understand you correctly, you would use the former when > generating your manifests from a revision, and the latter when verifying > the contents of the filesystem against those manifests. that sounds about right actually. except there won't be manifests e.g. I may actually run find . -name Manifest -exec rm '{}' + from the root of the tree. (depends on whether I can get rid of manifesting distfiles, but they don't change so often, so aren't really a problem). > $ git hash-object --stdin < Makefile > 27b9569746179e68c635bdaab8e57395f63faf01 is there anyway built in way to do that and check to see if the hash matches HEAD? (before I go and write a string comparison so that it does) -- Caleb Cushing http://xenoterracide.blogspot.com