<?xml version='1.0' encoding='utf-8' ?>

<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom10='http://www.w3.org/2005/Atom'>
<channel>
  <title>Philip Newton&apos;s journal</title>
  <link>https://pne.dreamwidth.org/</link>
  <description>Philip Newton&apos;s journal - Dreamwidth Studios</description>
  <lastBuildDate>Fri, 09 Dec 2011 20:29:44 GMT</lastBuildDate>
  <generator>LiveJournal / Dreamwidth Studios</generator>
  <lj:journal>pne</lj:journal>
  <lj:journaltype>personal</lj:journaltype>
  <image>
    <url>https://v2.dreamwidth.org/6975/20791</url>
    <title>Philip Newton&apos;s journal</title>
    <link>https://pne.dreamwidth.org/</link>
    <width>96</width>
    <height>66</height>
  </image>

<item>
  <guid isPermaLink='true'>https://pne.dreamwidth.org/973315.html</guid>
  <pubDate>Fri, 09 Dec 2011 20:29:44 GMT</pubDate>
  <title>Yay for git!</title>
  <link>https://pne.dreamwidth.org/973315.html</link>
  <description>&lt;p&gt;So I’m working on a font in FontForge for several days, when suddenly the program crashes. OK, not the first time, so I restart: and am greeted with an error message (“Internal Error: Invalid 2nd order spline in SplineRefigure2”). Oops, what now.&lt;/p&gt;

&lt;p&gt;Apparently, that happens when the quadratic splines which are internally represented as cubic splines end up not being a valid quadratic spline after all. But how to fix that?&lt;/p&gt;

&lt;p&gt;Now I was happy that I had added the file to a local git repository and had been committing regularly, typically after every letter. So I could have gone back in time until a good place and then started redoing my work without the bad letter(s). Annoying, but possible.&lt;/p&gt;

&lt;p&gt;But enter &lt;code&gt;git bisect&lt;/code&gt;! That identified the single bad commit for me (the letter &lt;b&gt;R&lt;/b&gt;, for what it’s worth).&lt;/p&gt;

&lt;p&gt;And then &lt;code&gt;git rebase -i&lt;/code&gt; let me reply the series of commits from &lt;b&gt;T&lt;/b&gt; to the end onto &lt;b&gt;Q&lt;/b&gt; (the last good one), so the end result was the same as before, except minus the bad commit. (I had two conflicts along the way, but they were easily resolved.)&lt;/p&gt;

&lt;p&gt;So yay! It seems that the error was only in the &lt;b&gt;R&lt;/b&gt;. And it’s much less annoying to redraw one letter than a whole bunch!&lt;/p&gt;

&lt;p&gt;Git saves the day!&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=pne&amp;ditemid=973315&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://pne.dreamwidth.org/973315.html</comments>
  <category>git</category>
  <lj:mood>grateful</lj:mood>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
</channel>
</rss>
