<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/CodingGuidelines, branch v2.30.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.30.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.30.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2020-06-18T04:54:05Z</updated>
<entry>
<title>Merge branch 'dl/python-2.7-is-the-floor-version'</title>
<updated>2020-06-18T04:54:05Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-06-18T04:54:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6361eb73c6dc147e94b02673f387c0345d8d15d2'/>
<id>urn:sha1:6361eb73c6dc147e94b02673f387c0345d8d15d2</id>
<content type='text'>
Document that we do not support Python 2.6 or older.

* dl/python-2.7-is-the-floor-version:
  CodingGuidelines: specify Python 2.7 is the oldest version
</content>
</entry>
<entry>
<title>CodingGuidelines: specify Python 2.7 is the oldest version</title>
<updated>2020-06-08T17:32:42Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2020-06-07T10:21:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=45a87a83bb5eb146816bc98026fafaa9d912fc92'/>
<id>urn:sha1:45a87a83bb5eb146816bc98026fafaa9d912fc92</id>
<content type='text'>
In 0b4396f068 (git-p4: make python2.7 the oldest supported version,
2019-12-13), git-p4 was updated to only support 2.7 and newer. Since
Python 2.6 is pretty much ancient history, update CodingGuidelines to
show that 2.7 is the oldest version supported.

Signed-off-by: Denton Liu &lt;liu.denton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/codingstyle-compare-with-null'</title>
<updated>2020-05-14T21:39:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-05-14T21:39:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=73d9f96b4790e16335a30380f97d46bd065dc07b'/>
<id>urn:sha1:73d9f96b4790e16335a30380f97d46bd065dc07b</id>
<content type='text'>
Doc update.

* jc/codingstyle-compare-with-null:
  CodingGuidelines: do not ==/!= compare with 0 or '\0' or NULL
</content>
</entry>
<entry>
<title>Merge branch 'jk/arith-expansion-coding-guidelines'</title>
<updated>2020-05-08T21:25:07Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-05-08T21:25:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6d4bf5813cd2c1a3b93fd4f0b231733f82133cce'/>
<id>urn:sha1:6d4bf5813cd2c1a3b93fd4f0b231733f82133cce</id>
<content type='text'>
The coding guideline for shell scripts instructed to refer to a
variable with dollar-sign inside arithmetic expansion to work
around a bug in old versions of dash, which is a thing of the past.
Now we are not forbidden from writing $((var+1)).

* jk/arith-expansion-coding-guidelines:
  CodingGuidelines: drop arithmetic expansion advice to use "$x"
</content>
</entry>
<entry>
<title>CodingGuidelines: do not ==/!= compare with 0 or '\0' or NULL</title>
<updated>2020-05-08T18:25:12Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-05-08T17:51:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5c7bb0146e1971a00308a667cb0424459262c273'/>
<id>urn:sha1:5c7bb0146e1971a00308a667cb0424459262c273</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Signed-off-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>CodingGuidelines: drop arithmetic expansion advice to use "$x"</title>
<updated>2020-05-04T19:36:07Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2020-05-04T16:07:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=32b5fe7f0e2cb798954b3e01b990bc140706e191'/>
<id>urn:sha1:32b5fe7f0e2cb798954b3e01b990bc140706e191</id>
<content type='text'>
The advice to use "$x" rather than "x" in arithmetric expansion was
working around a dash bug fixed in 0.5.4. Even Debian oldstable has
0.5.8 these days. And in the meantime, we've added almost two dozen
instances of the "x" form which you can find with:

  git grep '$(([a-z]'

and nobody seems to have complained. Let's declare this workaround
obsolete and simplify our style guide.

Helped-by: Danh Doan &lt;congdanhqx@gmail.com&gt;
Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Reviewed-by: Carlo Marcelo Arenas Belón &lt;carenas@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/allow-strlen-substitution-in-shell-scripts'</title>
<updated>2020-04-22T20:42:48Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-04-22T20:42:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7d28d691749a9c37aa1f490454f1d2c8a285e672'/>
<id>urn:sha1:7d28d691749a9c37aa1f490454f1d2c8a285e672</id>
<content type='text'>
Coding guideline update.

* jc/allow-strlen-substitution-in-shell-scripts:
  CodingGuidelines: allow ${#posix} == strlen($posix)
</content>
</entry>
<entry>
<title>CodingGuidelines: allow ${#posix} == strlen($posix)</title>
<updated>2020-03-29T15:41:54Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-03-29T03:06:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=78725ebda9577ec86a9657d20b8ee8c2a099601d'/>
<id>urn:sha1:78725ebda9577ec86a9657d20b8ee8c2a099601d</id>
<content type='text'>
The construct has been in POSIX for the past 10+ years, and we have
used in t9xxx (subversion) series of the tests, so we know it is at
portable across systems that people have run those tests, which is
almost everything we'd care about.

Let's loosen the rule; luckily, the check-non-portable-shell script
does not have any rule to find its use, so the only change needed is
a removal of one paragraph from the documentation.

Helped-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation: fix a bunch of typos, both old and new</title>
<updated>2019-11-07T04:42:00Z</updated>
<author>
<name>Elijah Newren</name>
<email>newren@gmail.com</email>
</author>
<published>2019-11-05T17:07:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=031fd4b93b8182761948aa348565118955f48307'/>
<id>urn:sha1:031fd4b93b8182761948aa348565118955f48307</id>
<content type='text'>
Reported-by: Jens Schleusener &lt;Jens.Schleusener@fossies.org&gt;
Signed-off-by: Elijah Newren &lt;newren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/post-c89-rules-doc'</title>
<updated>2019-07-25T20:59:23Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-07-25T20:59:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fe9dc6b08c35a8808d24ad32ddac847bc3137a4a'/>
<id>urn:sha1:fe9dc6b08c35a8808d24ad32ddac847bc3137a4a</id>
<content type='text'>
We have been trying out a few language features outside c89; the
coding guidelines document did not talk about them and instead had
a blanket ban against them.

* jc/post-c89-rules-doc:
  CodingGuidelines: spell out post-C89 rules
</content>
</entry>
</feed>
