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

Re: [PATCH 6/6] doc: git-clone: format placeholders

From
Jean-Noël Avila <avila.jn@gmail.com>
Date
Mar 11, 2024, 21:43 UTC
Message-ID
<3c98b049-4eb8-4441-aae7-4789a8f74d9b@gmail.com>
In-Reply-To
<xmqqbk7ku2ak.fsf@gitster.g>
Le 11/03/2024 à 18:05, Junio C Hamano a écrit :
Show 13 quoted lines
> "Jean-Noël Avila via GitGitGadget" <gitgitgadget@gmail.com> writes:
> 
>>  --bare::
>>  	Make a 'bare' Git repository.  That is, instead of
>> -	creating `<directory>` and placing the administrative
>> -	files in `<directory>/.git`, make the `<directory>`
>> +	creating _<directory>_ and placing the administrative
>> +	files in `<directory>/.git`, make the _<directory>_
> 
> It is hard to decide what the right thing to do is to the earlier
> one on this line, isn't it?  It is not fully verbatim, even though
> its "/.git" part is.
> 

Like the synopsys of the manpages, if there is a "constant" part in the word, it is deemed to be verbatim. Only when the placeholder is standing alone (usually the sentence is about it) must the placeholder be marked up as emphasized.

Also, headers of description list needn't be marked up.
Maybe worth some additional rules in the guidelines...
> Everything else in this entire series looked good to my cursory
> read, but I'd appreciate extra sets of eyes, of course.
> 
> Thanks for working on this topic.

There are manpages that are really inconsistant, and even malformed (such as gitremote-helpers), but the order of fixing will be to focus on the most often viewed ones first.

Previous: Junio C Hamano
Message 9 of 9 in “doc: rework doc files for git-init and git-clone”
  1. 0/6 doc: rework doc files for git-init and git-cloneJean-Noël Avila via GitGitGadget, Mar 10, 2024
  2. 1/6 doc: git-init: format verbatim partsJean-Noël Avila via GitGitGadget, Mar 10, 2024
  3. 2/6 doc: git-init: format placeholdersJean-Noël Avila via GitGitGadget, Mar 10, 2024
  4. 3/6 doc: git-init: rework definition listsJean-Noël Avila via GitGitGadget, Mar 10, 2024
  5. 4/6 doc: git-init: rework config item init.templateDirJean-Noël Avila via GitGitGadget, Mar 10, 2024
  6. 5/6 doc: git-clone: format verbatim wordsJean-Noël Avila via GitGitGadget, Mar 10, 2024
  7. 6/6 doc: git-clone: format placeholdersJean-Noël Avila via GitGitGadget, Mar 10, 2024
  8. Junio C HamanoMar 11, 2024
  9. Jean-Noël AvilaMar 11, 2024

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.