<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>dragffy.com &#187; XP</title>
	<atom:link href="http://dragffy.com/blog/posts/category/operating-system/windows/xp/feed" rel="self" type="application/rss+xml" />
	<link>http://dragffy.com/blog</link>
	<description>The development, documentation, and blogging domain of Gabriel Dragffy.</description>
	<lastBuildDate>Wed, 27 Jan 2010 14:23:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Git errors on Cygwin</title>
		<link>http://dragffy.com/blog/posts/git-errors-on-cygwin</link>
		<comments>http://dragffy.com/blog/posts/git-errors-on-cygwin#comments</comments>
		<pubDate>Tue, 16 Sep 2008 09:35:50 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Revision Control]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[XP]]></category>

		<guid isPermaLink="false">http://dragffy.com/blog/?p=64</guid>
		<description><![CDATA[I&#8217;ve recently started experimenting with Git, previously being totally committed(!) to Bazaar. Git is difficult in comparison but I intend to stick with it. I have been using Git under Cygwin on Windows XP, it seemed to work fairly well except that often when I added a large batch of source code files they wouldn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently started experimenting with Git, previously being totally committed(!) to Bazaar. Git is difficult in comparison but I intend to stick with it. I have been using Git under Cygwin on Windows XP, it seemed to work fairly well except that often when I added a large batch of source code files they wouldn&#8217;t get committed.</p>
<p>Eventually I found out it is because Git is choking on one the line endings in some files. When trying a commit of these files I would see a whole load of errors fly by such as &#8216;trailing whitespace&#8217; and &#8220;you have some suspicious patch lines&#8221;. Googling around I found three answers, but I could only fully understand two of them.</p>
<p>Firstly, the approach I took, was to run the command <code>chmod a-x .git/hooks/pre-commit</code> in the git repository.</p>
<p>The other approach, which I found <a href="http://www.dont-panic.cc/capi/2007/07/13/git-on-windows-you-have-some-suspicious-patch-lines/">here</a> says to edit the pre-commit file above and comment out the lines:<br />
<code>if (/\s$/) {<br />
bad_line("trailing whitespace", $_);<br />
}</code></p>
<p>Which would mean changing it to:<br />
<code>#if (/\s$/) {<br />
#bad_line("trailing whitespace", $_);<br />
#}</code></p>
<p>Hope that can help someone!</p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/git-errors-on-cygwin/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
