<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>blog.johanv.org (Posts about patch)</title><link>https://blog.johanv.org/</link><description></description><atom:link href="https://blog.johanv.org/en/categories/patch.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2025 &lt;a href="https://blog.johanv.org/pages/contact/"&gt;Johan Vervloet&lt;/a&gt; 
&lt;a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"&gt;
&lt;img alt="Creative Commons License BY-NC-SA"
style="border-width:0; margin-bottom:12px;"
src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png"&gt;&lt;/a&gt;</copyright><lastBuildDate>Wed, 29 Oct 2025 18:31:22 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>How to apply a patch?</title><link>https://blog.johanv.org/en/posts/how-to-apply-a-patch/</link><dc:creator>Johan Vervloet</dc:creator><description>&lt;div&gt;&lt;p&gt;Suppose that you want to use e.g. a CiviCRM extension like
&lt;a class="reference external" href="https://github.com/jake-mw/CDNTaxReceipts/archive/1.3.1.zip"&gt;CDNTaxReceipts&lt;/a&gt; , but
you want some extra functionality, and someone told you that there is
&lt;a class="reference external" href="https://patch-diff.githubusercontent.com/raw/jake-mw/CDNTaxReceipts/pull/39.diff"&gt;a patch&lt;/a&gt;
available.&lt;/p&gt;
&lt;p&gt;Now suppose you don't use git, and you don't have a clue about how a patch
works. Then this is the easy way to apply it.&lt;/p&gt;
&lt;ol class="arabic"&gt;
&lt;li&gt;&lt;p&gt;You download the patch file, and you save it on your file system, e.g.
as &lt;code class="docutils literal"&gt;~/Downloads/39.diff&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You use the command line. Supposing you unpacked the archive in
&lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;~/dev/CDNTaxReceipts-3.1&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;pre class="literal-block"&gt;cd ~/dev/CDNTaxReceipts-3.1
patch -p1 &amp;lt; ~/Downloads/39.diff&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Here you are. You patched the extension.&lt;/p&gt;
&lt;p&gt;If you use Windows, the hardest part will be finding a patch executable. On
almost every other OS, patch will be available by default.&lt;/p&gt;&lt;/div&gt;</description><guid>https://blog.johanv.org/en/posts/how-to-apply-a-patch/</guid><pubDate>Thu, 25 Feb 2016 19:05:07 GMT</pubDate></item></channel></rss>