<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/CodingGuidelines, branch main</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=main</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2026-04-01T03:43:13Z</updated>
<entry>
<title>CodingGuidelines: document our style for flags</title>
<updated>2026-04-01T03:43:13Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2026-03-31T23:57:46Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=55903dc87bee544c314706c509168afbbe14d262'/>
<id>urn:sha1:55903dc87bee544c314706c509168afbbe14d262</id>
<content type='text'>
We have recently iterated a bit on our style for flags. Document this.

Signed-off-by: Patrick Steinhardt &lt;ps@pks.im&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'lo/repo-leftover-bits'</title>
<updated>2026-03-04T18:53:01Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2026-03-04T18:53:01Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=34af1d6e879c172ed670d8e94ce107cf120a8c74'/>
<id>urn:sha1:34af1d6e879c172ed670d8e94ce107cf120a8c74</id>
<content type='text'>
Clean-up the code around "git repo info" command.

* lo/repo-leftover-bits:
  Documentation/git-repo: capitalize format descriptions
  Documentation/git-repo: replace 'NUL' with '_NUL_'
  t1901: adjust nul format output instead of expected value
  t1900: rename t1900-repo to t1900-repo-info
  repo: rename struct field to repo_info_field
  repo: replace get_value_fn_for_key by get_repo_info_field
  repo: rename repo_info_fields to repo_info_field
  CodingGuidelines: instruct to name arrays in singular
</content>
</entry>
<entry>
<title>Merge branch 'jc/doc-cg-needswork'</title>
<updated>2026-02-25T19:54:17Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2026-02-25T19:54:17Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=1a46f31b3e1a0f739cb1b045861ba56bc126c6ee'/>
<id>urn:sha1:1a46f31b3e1a0f739cb1b045861ba56bc126c6ee</id>
<content type='text'>
A CodingGuidelines update.

* jc/doc-cg-needswork:
  CodingGuidelines: document NEEDSWORK comments
</content>
</entry>
<entry>
<title>CodingGuidelines: instruct to name arrays in singular</title>
<updated>2026-02-25T19:47:41Z</updated>
<author>
<name>Lucas Seiki Oshiro</name>
<email>lucasseikioshiro@gmail.com</email>
</author>
<published>2026-02-25T16:32:10Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=c63e64e04d43ebdc04204a052858c4801c018e1e'/>
<id>urn:sha1:c63e64e04d43ebdc04204a052858c4801c018e1e</id>
<content type='text'>
Arrays should be named in the singular form, ensuring that when
accessing an element within an array (e.g. dog[0]) it's clear that
we're referring to an element instead of a collection.

Add a new rule to CodingGuidelines asking for arrays to be named in
singular instead of plural.

Helped-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Lucas Seiki Oshiro &lt;lucasseikioshiro@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>CodingGuidelines: document NEEDSWORK comments</title>
<updated>2026-02-14T15:37:33Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2026-02-12T21:22:56Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=aa94ba7d80c3b917a507f6975bd6400436fcd9e6'/>
<id>urn:sha1:aa94ba7d80c3b917a507f6975bd6400436fcd9e6</id>
<content type='text'>
We often say things like /* NEEDSWORK: further _do_ _this_ */ in
comments, but it is a short-hand to say "We might later want to do
this.  We might not.  We do not have to decide it right now at this
moment in the commit this comment was added.  If somebody is
inclined to work in this area further, the first thing they need to
do is to figure out if it truly makes sense to do so, before blindly
doing it."

This seems to have never been documented.  Do so now.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>CodingGuidelines: document // comments</title>
<updated>2026-02-11T21:29:36Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2026-02-11T19:17:48Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=2f99f50f2d55fa23475b7de25ff215439c6f53ed'/>
<id>urn:sha1:2f99f50f2d55fa23475b7de25ff215439c6f53ed</id>
<content type='text'>
We do not use // comments in our C code, which is implied by the
description of multi-line comment rule and its examples, but is not
explicitly spelled out.  Spell it out.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation: note styling for bit fields</title>
<updated>2025-08-26T22:46:03Z</updated>
<author>
<name>Karthik Nayak</name>
<email>karthik.188@gmail.com</email>
</author>
<published>2025-08-26T12:19:28Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=929b1d08f790938e147301a61c2dee4253cc3fa5'/>
<id>urn:sha1:929b1d08f790938e147301a61c2dee4253cc3fa5</id>
<content type='text'>
Our codebase uses a lot of bit field variables, generally to mark
boolean type variables. While there is a formatting rule in the
'.clang-format', there is no guideline specified in the
'CodingGuidelines'.

Since the '.clang-format' is not yet enforced, let's also add a
guideline with the same rule as mentioned in the '.clang-format', which
is to not use any spaces around the colon, like so:

    unsigned my_field:1;
    unsigned other_field:1;
    unsigned field_with_longer_name:1;

This would allow us not to modify the clang-format file, and more
importantly, discourage people from doing ugly alignment with spaces,
i.e.

    unsigned my_field               : 1;
    unsigned            other_field : 1;
    unsigned field_with_longer_name : 1;

Helped-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Signed-off-by: Karthik Nayak &lt;karthik.188@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/doc-release-vs-clear'</title>
<updated>2025-08-04T15:10:35Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2025-08-04T15:10:35Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=67424f5bcac94ec3b37ac2f76d2c742adaa8e54c'/>
<id>urn:sha1:67424f5bcac94ec3b37ac2f76d2c742adaa8e54c</id>
<content type='text'>
Doc update.

* jc/doc-release-vs-clear:
  CodingGuidelines: clarify that S_release() does not reinitialize
</content>
</entry>
<entry>
<title>Merge branch 'jc/document-test-balloons-in-flight'</title>
<updated>2025-08-01T18:27:13Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2025-08-01T18:27:13Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=cbcde15e7316a28f9deb49b4f48e9748b5a903d2'/>
<id>urn:sha1:cbcde15e7316a28f9deb49b4f48e9748b5a903d2</id>
<content type='text'>
To help our developers, document what C99 language features are
being considered for adoption, in addition to what past experiments
have already decided.

* jc/document-test-balloons-in-flight:
  CodingGuidelines: document test balloons in flight
</content>
</entry>
<entry>
<title>CodingGuidelines: clarify that S_release() does not reinitialize</title>
<updated>2025-08-01T17:08:17Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2025-08-01T17:06:55Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=4ac3302a1a77cf833fc7085a0b6a6b49024d1bc5'/>
<id>urn:sha1:4ac3302a1a77cf833fc7085a0b6a6b49024d1bc5</id>
<content type='text'>
In the section for naming various API functions, the fact that
S_release() only releases the resources without preparing the
structure for immediate reuse becomes only apparent when you
readentries for S_release() and S_clear().

Clarify the description of S_release() a bit to make the entry self
sufficient.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
