From: Chris Patti Date: Tue, 31 Aug 2010 21:06:50 GMT Subject: Re: Odd results writing a Git pre-receive hook to syntax check PHP files. Message-ID: In-Reply-To: <4C7C020C.6090907@drmicha.warpmail.net> On Mon, Aug 30, 2010 at 3:10 PM, Michael J Gruber wrote: > > git diff-tree --root $newrev > > will take care of this. > > Michael > Thank you sir! You are a scholar and a gentleman, and I sincerely appreciate the help. Here is the completed hook for anyone who is curious, this turned into a more complex project than I thought it would be, but I learned a heck of a lot along the way so that's a good thing! -Chris ---- #!/home/php/bin/php