Example git hooks (Re: Odd results writing a Git pre-receive hook to syntax check PHP files.)
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Aug 30, 2010, 14:34 UTC
- Message-ID
- <20100830143411.GH2315@burratino>
- In-Reply-To
- <AANLkTi=GUrnH87faWH8G0tD7_KAynVf_ig0KpQRwnsaE@mail.gmail.com>
Chris Patti wrote:
> (P.S. Is there a canonical 'example Git hooks' location I could > publish this to when it's working? I think there's a dearth of this > kind of example for people out there right now)
Try the git wiki (git.wiki.kernel.org). There is a page for aliases but no page for example hooks yet (though there are some examples under InterfacesFrontendsAndTools). You could be the trailblazer.
There are also a few examples in git templates/ and contrib/hooks, of course.