You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by bu...@apache.org on 2013/06/12 07:35:56 UTC

svn commit: r865379 - in /websites/staging/isis/trunk: cgi-bin/ content/ content/contributors/applying-patches.html

Author: buildbot
Date: Wed Jun 12 05:35:56 2013
New Revision: 865379

Log:
Staging update by buildbot for isis

Modified:
    websites/staging/isis/trunk/cgi-bin/   (props changed)
    websites/staging/isis/trunk/content/   (props changed)
    websites/staging/isis/trunk/content/contributors/applying-patches.html

Propchange: websites/staging/isis/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed Jun 12 05:35:56 2013
@@ -1 +1 @@
-1491543
+1492060

Propchange: websites/staging/isis/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed Jun 12 05:35:56 2013
@@ -1 +1 @@
-1491543
+1492060

Modified: websites/staging/isis/trunk/content/contributors/applying-patches.html
==============================================================================
--- websites/staging/isis/trunk/content/contributors/applying-patches.html (original)
+++ websites/staging/isis/trunk/content/contributors/applying-patches.html Wed Jun 12 05:35:56 2013
@@ -264,7 +264,9 @@
 
 <h2>Patch files</h2>
 
-<p>If a patch file has been povided, then it can be applied using command line tools.</p>
+<p>If a patch file has been provided, then it can be applied using command line tools.</p>
+
+<h3>Inspect the patch</h3>
 
 <p>First, take a look at what changes are in the patch. You can do this easily with <code>git apply</code></p>
 
@@ -280,22 +282,31 @@
 
 <p>If you don’t get any errors, the patch can be applied cleanly. Otherwise you may see what trouble you’ll run into.</p>
 
-<p>To apply the patch, use:</p>
+<h3>Apply a (clean) patch</h3>
 
-<pre><code>git apply ISIS-xxx.patch
+<p>To apply a clean patch (adding the items and commit/signoff in a single step), use <code>git am</code>:</p>
+
+<pre><code>git am --signoff &lt; ISIS-xxx.patch
 </code></pre>
 
-<p>Review changes.  Then commit the changes, using the <code>--signoff</code> flag to indicate that you reviewed and were happy with the contributed changes:</p>
+<p>This preserves the original author's commit message.</p>
+
+<h3>Apply a (non-clean) patch</h3>
 
-<pre><code>git commit -m "..." --signoff
+<p>If the patch does not apply cleanly, then the original authors commit message cannot be preserved.  This sequence in this case is:</p>
+
+<pre><code>git apply ISIS-xxx.patch
 </code></pre>
 
-<p>Alternatively, if you want to do the apply and commit/signoff in a single step, use <code>git am</code>:</p>
+<p>Fix up any issues.  The add and commit as usual</p>
 
-<pre><code>git am --signoff &lt; ISIS-xxx.patch
+<pre><code>git add .
+git commit am "&lt;original authors' commit message&gt;" --signoff
 </code></pre>
 
-<p>Information adapted from <a href="https://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-git/">this blog post</a></p>
+<p>The <code>--signoff</code> simply adds a line to the commit message indicating you have signed off the commit.</p>
+
+<p>Information adapted from <a href="https://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-git/">this blog post</a> and <a href="http://wiki.eclipse.org/Jetty/Contributor/Contributing_Patches">this wiki page</a>.</p>