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

Re: [PATCH 2/2] Fix minor grammatical and other formatting issues in the "git log" man page

From
Jason St. John <jstjohn@purdue.edu>
Date
Nov 15, 2013, 01:44 UTC
Message-ID
<CAEjxke8vLtA5CgW8v4zv58kexe631koniNpdqTrr8LFYAOrMuA@mail.gmail.com>
In-Reply-To
<xmqqy54sc6ev.fsf@gitster.dls.corp.google.com>
On Wed, Nov 13, 2013 at 4:56 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 51 quoted lines
> "Jason St. John" <jstjohn@purdue.edu> writes:
>
>> Documentation/git-log.txt:
>> -- replace single quotes around options/commands with backticks
>> -- use single quotes around references to sections
>> -- replaced some double quotes with proper AsciiDoc quotes (e.g.
>>      ``foo'')
>> -- use backticks around files and file paths
>> -- use title case when referring to section headings
>> -- use backticks around option arguments/defaults
>>
>> Signed-off-by: Jason St. John <jstjohn@purdue.edu>
>> ---
>> When working on this commit, I noticed a difference in how options and
>> option descriptions are separated (e.g. with a blank line or not). At least
>> with Vim's syntax highlighting, if there is a blank line between the option
>> and its description, the text block is all colored the same; however, if
>> there isn't a blank line, then the text block is not specially colored.
>>
>> Is there an existing convention for how this should be done?
>
> I do not think we have a written rule or convention (and I do not
> know if we want one).  While reading the text in the source form
> (and the point of choosing AsciiDoc was to be able to read the docs
> without formatting), I personally have a slight preference to
> immediately follow the body text to the label in the labelled list,
> and a blank line after the item, i.e.
>
>         item label::
>                 This describes the item.
>
>         next item label::
>                 This describes the next item.
>
> as it makes it clear that the body belongs to the heading that
> precedes it.
>
> But it does help to have a blank between the label and the beginning
> of the body when reflowing the body with fill-paragraph, i.e.
>
>         item label::
>
>                 This describes the item.
>
> You say that it is also easier on Vim to have the blank line there,
> so perhaps we may want to aim for updating the documentation over
> time to consistently do so.  I dunno.
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

As I stated in my recent resubmit[1], I decided to remove the blank lines after option subheadings because the syntax highlighting in Vim actually looks better with the blank lines removed. As such, I would prefer that we go with the option of removing these blank lines going forward.

If we are in agreement on this, should I send in a patch for CodingGuidelines to state this?

[1] http://marc.info/?l=git&m=138447927208462&w=2
Previous: Junio C HamanoNext: Jason St. John
Message 4 of 5 in “Rewrite man page explanation of git log's "--log-size" option”
  1. 1/2 Rewrite man page explanation of git log's "--log-size" optionJason St. John, Nov 13, 2013
  2. 2/2 Fix minor grammatical and other formatting issues in the "git log" man pageJason St. John, Nov 13, 2013
  3. Junio C HamanoNov 13, 2013
  4. Jason St. JohnNov 15, 2013
  5. Jason St. JohnNov 15, 2013

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.