<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/CodingGuidelines, branch gitk-resize-error</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=gitk-resize-error</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=gitk-resize-error'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2021-12-05T01:26:41Z</updated>
<entry>
<title>CodingGuidelines: document which output goes to stdout vs. stderr</title>
<updated>2021-12-05T01:26:41Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2021-12-02T22:31:10Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=e258eb4800e30da2adbdb2df8d8d8c19d9b443e4'/>
<id>urn:sha1:e258eb4800e30da2adbdb2df8d8d8c19d9b443e4</id>
<content type='text'>
It has long been practice on this project for a command to emit its
primary output to stdout so that it can be captured to a file or sent
down a pipe, and to emit "chatty" messages (such as those reporting
progress) to stderr so that they don't interfere with the primary
output. However, this practice is not necessarily universal; another
common practice is to send only error messages to stderr, and all other
messages to stdout. Therefore, help newcomers out by documenting how
stdout and stderr are used on this project.

Signed-off-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Acked-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ds/gender-neutral-doc-guidelines'</title>
<updated>2021-07-28T20:18:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-07-28T20:18:02Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=546adc4950185464c75158301c854b0f55dcf465'/>
<id>urn:sha1:546adc4950185464c75158301c854b0f55dcf465</id>
<content type='text'>
A guideline for gender neutral documentation has been added.

* ds/gender-neutral-doc-guidelines:
  CodingGuidelines: recommend gender-neutral description
</content>
</entry>
<entry>
<title>CodingGuidelines: recommend gender-neutral description</title>
<updated>2021-07-16T18:35:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-07-15T16:25:27Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=5b1cd37e4439edaabf781a1c840f5af4c003e727'/>
<id>urn:sha1:5b1cd37e4439edaabf781a1c840f5af4c003e727</id>
<content type='text'>
Technical writing seeks to convey information with minimal
friction. One way that a reader can experience friction is if they
encounter a description of "a user" that is later simplified using a
gendered pronoun. If the reader does not consider that pronoun to
apply to them, then they can experience cognitive dissonance that
removes focus from the information.

Give some basic tips to guide us avoid unnecessary uses of gendered
description.

Using a gendered pronoun is appropriate when referring to a specific
person.

There are acceptable existing uses of gendered pronouns within the
Git codebase, such as:

* References to real people (e.g. Linus Torvalds, "the Git maintainer").
  Do not misgender real people. If there is any doubt to the gender of a
  person, then avoid using pronouns.

* References to fictional people with clear genders (e.g. Alice and
  Bob).

* Sample text used in test cases (e.g t3702, t6432).

* The official text of the GPL license contains uses of "he or she",
  but using singular "they" (or modifying the text in some other
  way) is not within the scope of the Git project.

* Literal email messages in Documentation/howto/ should not be edited
  for grammatical concerns such as this, unless we update the entire
  document to fit the standard documentation format. If such an effort is
  taken on, then the authorship would change and no longer refer to the
  exact mail message.

* External projects consumed in contrib/ should not deviate solely for
  style reasons. Recommended edits should be contributed to those
  projects directly.

Other cases within the Git project were cleaned up by the previous
changes.

Co-authored-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Signed-off-by: Derrick Stolee &lt;dstolee@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/test-allows-local'</title>
<updated>2021-05-11T06:27:22Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-05-11T06:27:22Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=0b77301bf4c8e3b37beee0b5c8dcf26beaa6e789'/>
<id>urn:sha1:0b77301bf4c8e3b37beee0b5c8dcf26beaa6e789</id>
<content type='text'>
Document that our test can use "local" keyword.

* jc/test-allows-local:
  CodingGuidelines: explicitly allow "local" for test scripts
</content>
</entry>
<entry>
<title>CodingGuidelines: explicitly allow "local" for test scripts</title>
<updated>2021-05-03T05:24:11Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-05-03T05:23:24Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=a84fd3bcc6253f847af3366ebb9de9b8f441a624'/>
<id>urn:sha1:a84fd3bcc6253f847af3366ebb9de9b8f441a624</id>
<content type='text'>
01d3a526 (t0000: check whether the shell supports the "local"
keyword, 2017-10-26) raised a test balloon to see if those who build
and test Git use a platform with a shell that lacks support for the
"local" keyword.  After two years, 7f0b5908 (t0000: reword comments
for "local" test, 2019-08-08) documented that "local" keyword, even
though is outside POSIX, is allowed in our test scripts.

Let's write it in the CodingGuidelines, too.  It might be tempting
to allow it in scripted Porcelains (we have avoided getting them
contaminiated by "local" so far), but they are on their way out and
getting rewritten in C.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: clarify "do not capitalize the first word" rule</title>
<updated>2021-04-15T06:41:00Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-04-14T23:51:17Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=151b6c2dd7d040bd053911e4fd4b3e5cc6f17c83'/>
<id>urn:sha1:151b6c2dd7d040bd053911e4fd4b3e5cc6f17c83</id>
<content type='text'>
The same "do not capitalize the first word" rule is applied to both
our patch titles and error messages, but the existing description
was fuzzy in two aspects.

 * For error messages, it was not said that this was only about the
   first word that begins the sentence.

 * For both, it was not clear when a capital letter there was not an
   error.  We avoid capitalizing the first word when the only reason
   you would capitalize it is because it happens to be the first
   word in the sentence.  If a proper noun, which is usually spelled
   in capital letters, happens to come at the beginning of the
   sentence, it should be kept in capital letters.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<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='http://git.kilabit.info/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='http://git.kilabit.info/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='http://git.kilabit.info/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='http://git.kilabit.info/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>
</feed>
