<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/CodingGuidelines, branch v2.3.8</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.3.8</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.3.8'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2015-04-21T19:12:19Z</updated>
<entry>
<title>Merge branch 'jg/cguide-we-cannot-count' into maint</title>
<updated>2015-04-21T19:12:19Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-04-21T19:12:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e8281f01642fe17d6f44b3b18ed333b322770e81'/>
<id>urn:sha1:e8281f01642fe17d6f44b3b18ed333b322770e81</id>
<content type='text'>
* jg/cguide-we-cannot-count:
  CodingGuidelines: update 'rough' rule count
</content>
</entry>
<entry>
<title>CodingGuidelines: update 'rough' rule count</title>
<updated>2015-04-14T16:50:31Z</updated>
<author>
<name>Julian Gindi</name>
<email>juliangindi@gmail.com</email>
</author>
<published>2015-04-13T12:54:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6c3b2afe6f64d33c176a8d369793392d7659fd6f'/>
<id>urn:sha1:6c3b2afe6f64d33c176a8d369793392d7659fd6f</id>
<content type='text'>
Changed inaccurate count of "rough rules" from three to the more
generic 'a few'.

Signed-off-by: Julian Gindi &lt;juliangindi@gmail.com&gt;
Reviewed-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Reviewed-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>CodingGuidelines: describe naming rules for configuration variables</title>
<updated>2015-02-02T19:28:55Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-01-27T20:26:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=35840a3e789dd67528caefc146deb698bd6ac7a5'/>
<id>urn:sha1:35840a3e789dd67528caefc146deb698bd6ac7a5</id>
<content type='text'>
We may want to say something about command line option names in the
new section as well, but for now, let's make sure everybody is clear
on how to structure and name their configuration variables.

The text for the rules are partly taken from the log message of
Jonathan's 6b3020a2 (add: introduce add.ignoreerrors synonym for
add.ignore-errors, 2010-12-01).

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'po/error-message-style'</title>
<updated>2014-07-16T18:33:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-07-16T18:33:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7591e2c53c6f02626e376a98b5f95745fbfe108f'/>
<id>urn:sha1:7591e2c53c6f02626e376a98b5f95745fbfe108f</id>
<content type='text'>
* po/error-message-style:
  doc: give some guidelines for error messages
</content>
</entry>
<entry>
<title>doc: give some guidelines for error messages</title>
<updated>2014-07-10T20:31:55Z</updated>
<author>
<name>Philip Oakley</name>
<email>philipoakley@iee.org</email>
</author>
<published>2014-06-16T12:55:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0ae0e882b2dd8048e2096138561f0b2ab0cad454'/>
<id>urn:sha1:0ae0e882b2dd8048e2096138561f0b2ab0cad454</id>
<content type='text'>
Clarify error message puntuation to reduce review workload.

Signed-off-by: Philip Oakley &lt;philipoakley@iee.org&gt;
Helped-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>CodingGuidelines: avoid "test &lt;cond&gt; -a/-o &lt;cond&gt;"</title>
<updated>2014-05-20T18:19:43Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-05-20T18:12:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=897f964c0dce8e7cc2cc53bb19b83cadce106773'/>
<id>urn:sha1:897f964c0dce8e7cc2cc53bb19b83cadce106773</id>
<content type='text'>
The construct is error-prone; "test" being built-in in most modern
shells, the reason to avoid "test &lt;cond&gt; &amp;&amp; test &lt;cond&gt;" spawning
one extra process by using a single "test &lt;cond&gt; -a &lt;cond&gt;" no
longer exists.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>CodingGuidelines: on splitting a long line</title>
<updated>2014-05-02T21:08:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-05-02T20:42:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f26443da0449c459dab8b91d963bd91dd4335657'/>
<id>urn:sha1:f26443da0449c459dab8b91d963bd91dd4335657</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>CodingGuidelines: on comparison</title>
<updated>2014-05-02T20:44:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-04-30T21:26:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5db9ab82b94fab16e69b0228aaf1e972520bd04a'/>
<id>urn:sha1:5db9ab82b94fab16e69b0228aaf1e972520bd04a</id>
<content type='text'>
There are arguments for writing a conditional as "a &lt; b" rather than
"b &gt; a", or vice versa.  Let's give guidance on which we prefer.

See http://thread.gmane.org/gmane.comp.version-control.git/3903/focus=4126
for the original discussion.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>CodingGuidelines: do not call the conditional statement "if()"</title>
<updated>2014-05-02T20:26:07Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-04-30T21:25:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=691d0dd0a9c901286c2a0a28c30ec4d13bcd2032'/>
<id>urn:sha1:691d0dd0a9c901286c2a0a28c30ec4d13bcd2032</id>
<content type='text'>
The point immediately before it is about having SP after the control
keyword.  Spell it out as 'an "if" statement' instead.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>CodingGuidelines: give an example for shell function preamble</title>
<updated>2014-05-02T20:24:57Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-04-30T21:25:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6117a3d4946e35c7d4a38c0b443891c81808a838'/>
<id>urn:sha1:6117a3d4946e35c7d4a38c0b443891c81808a838</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
