<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/CodingGuidelines, branch v2.45.2</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=v2.45.2</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=v2.45.2'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2024-04-16T21:50:27Z</updated>
<entry>
<title>Merge branch 'jc/local-extern-shell-rules'</title>
<updated>2024-04-16T21:50:27Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-04-16T21:50:27Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=92e8388bd35cdddf312011a98e046706bb420fce'/>
<id>urn:sha1:92e8388bd35cdddf312011a98e046706bb420fce</id>
<content type='text'>
Document and apply workaround for a buggy version of dash that
mishandles "local var=val" construct.

* jc/local-extern-shell-rules:
  t1016: local VAR="VAL" fix
  t0610: local VAR="VAL" fix
  t: teach lint that RHS of 'local VAR=VAL' needs to be quoted
  t: local VAR="VAL" (quote ${magic-reference})
  t: local VAR="VAL" (quote command substitution)
  t: local VAR="VAL" (quote positional parameters)
  CodingGuidelines: quote assigned value in 'local var=$val'
  CodingGuidelines: describe "export VAR=VAL" rule
</content>
</entry>
<entry>
<title>CodingGuidelines: quote assigned value in 'local var=$val'</title>
<updated>2024-04-06T05:50:05Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-04-06T00:08:58Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=be34b51049d1628d1ba4f17e3c087fd01f15f988'/>
<id>urn:sha1:be34b51049d1628d1ba4f17e3c087fd01f15f988</id>
<content type='text'>
Dash bug https://bugs.launchpad.net/ubuntu/+source/dash/+bug/139097
lets the shell erroneously perform field splitting on the expansion
of a command substitution during declaration of a local or an extern
variable.

The explanation was stolen from ebee5580 (parallel-checkout: avoid
dash local bug in tests, 2021-06-06).

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>CodingGuidelines: describe "export VAR=VAL" rule</title>
<updated>2024-04-06T05:48:12Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-04-06T00:08:57Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=7e3a9c23d670347454c6b95e3e6448c9d77fbdc4'/>
<id>urn:sha1:7e3a9c23d670347454c6b95e3e6448c9d77fbdc4</id>
<content type='text'>
https://lore.kernel.org/git/201307081121.22769.tboegi@web.de/
resulted in 9968ffff (test-lint: detect 'export FOO=bar',
2013-07-08) to add a rule to t/check-non-portable-shell.pl script to
reject

	export VAR=VAL

and suggest us to instead write it as two statements, i.e.,

	VAR=VAL
	export VAR

This however was not spelled out in the CodingGuidelines document.

We may want to re-evaluate the rule since it is from ages ago, but
for now, let's make the written rule and what the automation
enforces consistent.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: rework CodingGuidelines with new formatting rules</title>
<updated>2024-03-29T17:57:40Z</updated>
<author>
<name>Jean-Noël Avila</name>
<email>jn.avila@free.fr</email>
</author>
<published>2024-03-29T11:19:37Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=c42ea60495897884f2daff011026661c1819eb65'/>
<id>urn:sha1:c42ea60495897884f2daff011026661c1819eb65</id>
<content type='text'>
Literal and placeholder formatting is more heavily enforced, with some
asciidoc magic. Basically, the markup is preserved everywhere.

Signed-off-by: Jean-Noël Avila &lt;jn.avila@free.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/doc-compat-util'</title>
<updated>2024-03-05T17:44:43Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-03-05T17:44:43Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=53929db7c4962c967ee56e586264c278b29c313c'/>
<id>urn:sha1:53929db7c4962c967ee56e586264c278b29c313c</id>
<content type='text'>
Clarify wording in the CodingGuidelines that requires &lt;git-compat-util.h&gt;
to be the first header file.

* jc/doc-compat-util:
  doc: clarify the wording on &lt;git-compat-util.h&gt; requirement
</content>
</entry>
<entry>
<title>Merge branch 'ja/doc-placeholders-markup-rules' into HEAD</title>
<updated>2024-03-01T22:38:55Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-03-01T22:38:55Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=9ce1ca304581163b5e35e380384b3bfc232d6f89'/>
<id>urn:sha1:9ce1ca304581163b5e35e380384b3bfc232d6f89</id>
<content type='text'>
The way placeholders are to be marked-up in documentation have been
specified; use "_&lt;placeholder&gt;_" to typeset the word inside a pair
of &lt;angle-brakets&gt; emphasized.

* ja/doc-placeholders-markup-rules:
  doc: clarify the format of placeholders
</content>
</entry>
<entry>
<title>doc: clarify the wording on &lt;git-compat-util.h&gt; requirement</title>
<updated>2024-02-27T16:53:32Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-02-26T23:28:16Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=4e89f0e07cfba1155c012728e14f8362ab6a167f'/>
<id>urn:sha1:4e89f0e07cfba1155c012728e14f8362ab6a167f</id>
<content type='text'>
The reason why we require the &lt;git-compat-util.h&gt; file to be the
first header file to be included is because it insulates other
header files and source files from platform differences, like which
system header files must be included in what order, and what C
preprocessor feature macros must be defined to trigger certain
features we want out of the system.

We tried to clarify the rule in the coding guidelines document, but
the wording was a bit fuzzy that can lead to misinterpretations like
you can include &lt;xdiff/xinclude.h&gt; only to avoid having to include
&lt;git-compat-util.h&gt; even if you have nothing to do with the xdiff
implementation, for example.  "You do not have to include more than
one of these" was also misleading and would have been puzzling if
you _needed_ to depend on more than one of these approved headers
(answer: you are allowed to include them all if you need the
declarations in them for reasons other than that you want to avoid
including compat-util yourself).

Instead of using the phrase "approved headers", enumerate them as
exceptions, each labeled with its intended audiences, to avoid such
misinterpretations.  The structure also makes it easier to add new
exceptions, so add the description of "t/unit-tests/test-lib.h"
being an exception only for the unit tests implementation as an
example.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Acked-by: Kyle Lippincott &lt;spectral@google.com&gt;
Acked-by: Elijah Newren &lt;newren@gmail.com&gt;
</content>
</entry>
<entry>
<title>doc: clarify the format of placeholders</title>
<updated>2024-02-21T22:01:46Z</updated>
<author>
<name>Jean-Noël Avila</name>
<email>jn.avila@free.fr</email>
</author>
<published>2024-02-21T21:18:59Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=0824639ddf9c8ea9d7857440fb2414e12349f51a'/>
<id>urn:sha1:0824639ddf9c8ea9d7857440fb2414e12349f51a</id>
<content type='text'>
Add the new format rule when using placeholders in the description of
commands and options.

Signed-off-by: Jean-Noël Avila &lt;jn.avila@free.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'js/contributor-docs-updates' into maint-2.43</title>
<updated>2024-02-09T00:22:11Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-02-09T00:22:11Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=5a322a2d3daff58abd3525aa9de81d188096636b'/>
<id>urn:sha1:5a322a2d3daff58abd3525aa9de81d188096636b</id>
<content type='text'>
Doc update.

* js/contributor-docs-updates:
  SubmittingPatches: hyphenate non-ASCII
  SubmittingPatches: clarify GitHub artifact format
  SubmittingPatches: clarify GitHub visual
  SubmittingPatches: provide tag naming advice
  SubmittingPatches: update extra tags list
  SubmittingPatches: discourage new trailers
  SubmittingPatches: drop ref to "What's in git.git"
  CodingGuidelines: write punctuation marks
  CodingGuidelines: move period inside parentheses
</content>
</entry>
<entry>
<title>Merge branch 'js/update-urls-in-doc-and-comment' into maint-2.43</title>
<updated>2024-02-09T00:22:01Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-02-09T00:22:01Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=efbae0583bb8556444c57d4c336101f97efa6d66'/>
<id>urn:sha1:efbae0583bb8556444c57d4c336101f97efa6d66</id>
<content type='text'>
Stale URLs have been updated to their current counterparts (or
archive.org) and HTTP links are replaced with working HTTPS links.

* js/update-urls-in-doc-and-comment:
  doc: refer to internet archive
  doc: update links for andre-simon.de
  doc: switch links to https
  doc: update links to current pages
</content>
</entry>
</feed>
