PHP subversion post-commit hook
Posted on June 11th, 2008 in Work | 5 Comments »
Some time ago I’ve written a post-commit hook for Subversion in PHP, to make it easier to track code changes via email.
Because I based it on another hook, written in Ruby. Because it had no license attached to it, and because I had to rewrite it myself, I decided to license it under the new BSD license.
You can find the hook here: commit-email-color.phps.
Enjoy it!
Update 2008-06-13: added an option to disable colorcode the diffs.
Update 2009-06-17: fixed a bug: now displays the full commit message instead of just the first line.
5 Responses
How long did it take you to write this blog.
Hi Earl. There is some ambiguity in your response. If you mean this blog post: 5 minutes or so. It’s a long time ago, so I don’t really remember.
If you mean this whole blog, it’s just a stock WordPress installation, nearly without modifications. Should’ve taken me under 1 hour.
I agree with u. I need to imedeatly add it in my RSS
Hello I’m a new member and just wanted to say hello. Send me a PM if anyone wanna chat sometime i’m available for conversations.
пердуперденция где