<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.vifm.info/index.php?action=history&amp;feed=atom&amp;title=Providing_a_patch</id>
	<title>Providing a patch - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.vifm.info/index.php?action=history&amp;feed=atom&amp;title=Providing_a_patch"/>
	<link rel="alternate" type="text/html" href="https://wiki.vifm.info/index.php?title=Providing_a_patch&amp;action=history"/>
	<updated>2026-07-15T15:56:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.vifm.info/index.php?title=Providing_a_patch&amp;diff=280&amp;oldid=prev</id>
		<title>24.146.215.113 at 04:43, 10 November 2014</title>
		<link rel="alternate" type="text/html" href="https://wiki.vifm.info/index.php?title=Providing_a_patch&amp;diff=280&amp;oldid=prev"/>
		<updated>2014-11-10T04:43:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:43, 10 November 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot; &gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== Advices on patch files ====&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== Advices on patch files ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When providing a patch &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;please &lt;/del&gt;as a diff please consider the following (these are&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When providing a patch as a diff please consider the following (these are&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;not strict rules, but it makes reviewing easier):&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;not strict rules, but it makes reviewing easier):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Use unified diff format.  See [[#Why_unified_diff|section below]] for reasons.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Use unified diff format.  See [[#Why_unified_diff|section below]] for reasons.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>24.146.215.113</name></author>
	</entry>
	<entry>
		<id>https://wiki.vifm.info/index.php?title=Providing_a_patch&amp;diff=85&amp;oldid=prev</id>
		<title>Xaizek: Initial version of the page</title>
		<link rel="alternate" type="text/html" href="https://wiki.vifm.info/index.php?title=Providing_a_patch&amp;diff=85&amp;oldid=prev"/>
		<updated>2014-07-28T17:06:09Z</updated>

		<summary type="html">&lt;p&gt;Initial version of the page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Changes might be proposed as pull requests on GitHub or sent as patches in an&lt;br /&gt;
e-mail or attached to a ticket. This page gives some advices for the later&lt;br /&gt;
cases.&lt;br /&gt;
&lt;br /&gt;
==== Advices on patch files ====&lt;br /&gt;
&lt;br /&gt;
When providing a patch please as a diff please consider the following (these are&lt;br /&gt;
not strict rules, but it makes reviewing easier):&lt;br /&gt;
# Use unified diff format.  See [[#Why_unified_diff|section below]] for reasons.&lt;br /&gt;
# Make patch in root directory of the source tree.&lt;br /&gt;
# Give them meaningful names.&lt;br /&gt;
# Attach patches when possible instead of providing them in body of an e-mail or in description of a ticket. Automatic text formatting can make it unreadable or even make it impossible to apply.&lt;br /&gt;
# (optional) How would you like to be credited, e.g. maybe real name or nick name only.&lt;br /&gt;
&lt;br /&gt;
==== Making a patch ====&lt;br /&gt;
&lt;br /&gt;
From &amp;lt;code&amp;gt;git&amp;lt;/code&amp;gt; repository:&lt;br /&gt;
* Uncommited:&lt;br /&gt;
  git diff &amp;gt; change-description.patch&lt;br /&gt;
* Commited:&lt;br /&gt;
  git format-patch -1&lt;br /&gt;
&lt;br /&gt;
From unarchived sources:&lt;br /&gt;
  patch --unified src/old-version.c src/new-version.c &amp;gt; change-description.patch&lt;br /&gt;
&lt;br /&gt;
==== Why unified diff ====&lt;br /&gt;
&lt;br /&gt;
Unified diff is more human readable. See example below.&lt;br /&gt;
&lt;br /&gt;
Non-unified diff format:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
$ diff src/utils/utils_nix.c_ src/utils/utils_nix.c&lt;br /&gt;
156,162c156&lt;br /&gt;
&amp;lt;       while(select(fd + 1, &amp;amp;read_ready, NULL, NULL, &amp;amp;ts) == 0);&lt;br /&gt;
&amp;lt;&lt;br /&gt;
&amp;lt;       /* Inform other parts of the application that cancellation took place. */&lt;br /&gt;
&amp;lt;       if(errno == EINTR)&lt;br /&gt;
&amp;lt;       {&lt;br /&gt;
&amp;lt;               ui_cancellation_request();&lt;br /&gt;
&amp;lt;       }&lt;br /&gt;
---&lt;br /&gt;
&amp;gt;       while(select(fd + 1, &amp;amp;read_ready, NULL, NULL, &amp;amp;ts) == 0 || errno == EINTR);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unified diff format:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
$ diff --unified src/utils/utils_nix.c_ src/utils/utils_nix.c&lt;br /&gt;
--- src/utils/utils_nix.c_  2014-07-28 19:39:36.406899060 +0300&lt;br /&gt;
+++ src/utils/utils_nix.c   2014-07-28 19:38:52.720898588 +0300&lt;br /&gt;
@@ -153,13 +153,7 @@&lt;br /&gt;
                ts = ts_init;&lt;br /&gt;
                FD_SET(fd, &amp;amp;read_ready);&lt;br /&gt;
        }&lt;br /&gt;
-       while(select(fd + 1, &amp;amp;read_ready, NULL, NULL, &amp;amp;ts) == 0);&lt;br /&gt;
-&lt;br /&gt;
-       /* Inform other parts of the application that cancellation took place. */&lt;br /&gt;
-       if(errno == EINTR)&lt;br /&gt;
-       {&lt;br /&gt;
-               ui_cancellation_request();&lt;br /&gt;
-       }&lt;br /&gt;
+       while(select(fd + 1, &amp;amp;read_ready, NULL, NULL, &amp;amp;ts) == 0 || errno == EINTR);&lt;br /&gt;
 }&lt;br /&gt;
 int&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Xaizek</name></author>
	</entry>
</feed>