<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using git hooks to check syntax errors</title>
	<atom:link href="http://blog.timakinbo.com/2009/09/25/using-git-hooks-to-check-syntax-errors/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.timakinbo.com/2009/09/25/using-git-hooks-to-check-syntax-errors/</link>
	<description>the web, mobile technology and location based services as I see it</description>
	<lastBuildDate>Thu, 19 Jan 2012 00:01:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Tim</title>
		<link>http://blog.timakinbo.com/2009/09/25/using-git-hooks-to-check-syntax-errors/comment-page-1/#comment-367</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Thu, 09 Dec 2010 09:35:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.timakinbo.com/?p=53#comment-367</guid>
		<description>Which versions are you using? The bash script hook or the PHP one. Also, which files are you trying to commit to the repository? </description>
		<content:encoded><![CDATA[<p>Which versions are you using? The bash script hook or the PHP one. Also, which files are you trying to commit to the repository?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Freo</title>
		<link>http://blog.timakinbo.com/2009/09/25/using-git-hooks-to-check-syntax-errors/comment-page-1/#comment-366</link>
		<dc:creator>Phil Freo</dc:creator>
		<pubDate>Thu, 09 Dec 2010 02:18:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.timakinbo.com/?p=53#comment-366</guid>
		<description>Your post only half works for me  - it prints an error, but is not preventing the commit from occurring. </description>
		<content:encoded><![CDATA[<p>Your post only half works for me  &#8211; it prints an error, but is not preventing the commit from occurring.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.timakinbo.com/2009/09/25/using-git-hooks-to-check-syntax-errors/comment-page-1/#comment-280</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 29 Sep 2010 16:13:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.timakinbo.com/?p=53#comment-280</guid>
		<description>Or, if you want to embrace the power of plain-old-shellscript, just try: 
 
#!/bin/sh 
git diff-index --cached --name-only HEAD &#124; grep -E &#039;.(php&#124;module&#124;inc)$&#039; &#124; while read FILE; do 
php -l $FILE &gt;/dev/null &#124;&#124; exit 1 
done 
exit 0 
 
:) </description>
		<content:encoded><![CDATA[<p>Or, if you want to embrace the power of plain-old-shellscript, just try: </p>
<p>#!/bin/sh<br />
git diff-index &#8211;cached &#8211;name-only HEAD | grep -E &#039;.(php|module|inc)$&#039; | while read FILE; do<br />
php -l $FILE &gt;/dev/null || exit 1<br />
done<br />
exit 0<br />
  <img src='http://blog.timakinbo.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

