git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Fix a typo in git-maintenance documentation

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 19, 2021, 20:19 UTC
Message-ID
<xmqqa6qynbfm.fsf@gitster.g>
In-Reply-To
<xmqqv99nm3jy.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
Show 6 quoted lines
>>  gc::
>>  	Clean up unnecessary files and optimize the local repository. "GC"
>> -	stands for "garbage collection," but this task performs many
>> +	stands for "garbage collection", but this task performs many
>
> Isn't this merely an American style vs British style issue?

Having said that, I think a lot of existing documentation (and my gut feeling says "majority of", but I cannot claim anything like that without actually counting [*1*]) we have tend to stick to the "punctuation outside" British style [*2*].

If somebody (not me, and probably not Derrick) is willing to do the counting and tree-wide style fixes, I am OK if we add some new text to Documentation/CodingGuidelines to declare which style we stick to, and enforce consistency throughout the documentation set.

[Footnote]
*1* A quick count:
    $ git grep -e '," ' Documentation/
    gives just a single hit.  On the other hand, '", ' hits too many,
    but many are sentences like 
      "git clone -q", "git fetch -q", and the like are quiet.
    which is not quite fair.
    Don't try to do that for the comma replaced with period; you'd be
    buried by "word..."  and the like.
*2* After all, that is more "logical", for us CS types---opening and
    closing quotes pair with each other, and the punctuation that
    appears near the quoted portion is part of the larger sentence
    structure.
Previous: Derrick StoleeNext: Derrick Stolee
Message 4 of 5 in “Fix a typo in git-maintenance documentation”
  1. Fix a typo in git-maintenance documentationNils Leif Fischer via GitGitGadget, Mar 19, 2021
  2. Junio C HamanoMar 19, 2021
  3. Derrick StoleeMar 19, 2021
  4. Junio C HamanoMar 19, 2021
  5. Derrick StoleeMar 20, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.