Git development
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Omri Sarig <omri.sarig13@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] doc: update-index: Format options correctly
Date: Sun, 22 Nov 2026 12:19:29 -0800	[thread overview]
Message-ID: <xmqqfqwsk4a6.fsf@gitster.g> (raw)
In-Reply-To: <20261122152538.107580-1-omri.sarig13@gmail.com> (Omri Sarig's message of "Sun, 22 Nov 2026 16:25:37 +0100")

Omri Sarig <omri.sarig13@gmail.com> writes:

> Subject: Re: [PATCH] doc: update-index: Format options correctly

I'd downcase "Format" -> "format".

> The update-index man page had references to several options, which were

I take "had reference to" to mean "talked about" here.

No, I am not suggesting "talked about" is better.  "has references
to" (or "refers to") is perfectly fine once it is written in the
present tense, as the early part of a proposed log message is
supposed to give an observation of the current state.

> missing the relevant markers, causing them to be formatted as text
> instead of as references.

But then "as text instead of as references" somewhat misses the
mark.  These parts of text still refer to option names.

They should be typeset in `monospaced`, which is the convention in
our manual pages.  And that is the issue you are addressing.

These changes do not make things worse, but I'd prefer not to see
too many low-risk & low-value patches that address overly narrow
issues.  If we compare the resulting text after this patch, e.g.,

> diff --git a/Documentation/git-update-index.adoc b/Documentation/git-update-index.adoc
> index 9bea9fab9a..9b956216d2 100644
> --- a/Documentation/git-update-index.adoc
> +++ b/Documentation/git-update-index.adoc
> @@ -57,21 +57,21 @@ OPTIONS
>  	updates are needed by checking stat() information.
>  
>  -q::
> -        Quiet.  If --refresh finds that the index needs an update, the
> +        Quiet.  If `--refresh` finds that the index needs an update, the
>          default behavior is to error out.  This option makes
>  	'git update-index' continue anyway.

with another manual page that has these mark-up corrected in
Jean-Noël Avila's series from early this year, e.g., what e9a99ef2da
(doc: convert git-format-patch synopsis and options to new style,
2026-07-23) did:

 Prepare each non-merge commit with its "patch" in
 one "message" per commit, formatted to resemble a UNIX mailbox.
 The output of this command is convenient for e-mail submission or
-for use with 'git am'.
+for use with `git am`.
 ...
--<n>::
-       Prepare patches from the topmost <n> commits.
+`-<n>`::
+       Prepare patches from the topmost _<n>_ commits.
 
you would notice that while we typeset `--refresh` in monospace now
(which is a good thing to do), we should also update the enumeration
header "-q::" to "`-q`::", and also "'git update-index'" in single
quotes to use the same `backquote`.

Also the way these changes are described in Jean-Noël's log messages
is quite good.  You would want to imitate these messages.

Thanks.

  parent reply	other threads:[~2026-11-22 20:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-22 15:25 [PATCH] doc: update-index: Format options correctly Omri Sarig
2026-11-22 15:36 ` [PATCH v2] doc: update-index: format " Omri Sarig
2026-11-22 20:19 ` Junio C Hamano [this message]
2026-11-23 15:32   ` [PATCH] doc: update-index: Format " Omri Sarig
2026-11-23 15:56     ` Richard Kerry
2026-11-23 16:56       ` Omri Sarig
2026-11-24 10:25       ` Kristoffer Haugsbakk
2026-11-23 20:34     ` Junio C Hamano
2026-11-29 18:40 ` [PATCH v3] doc: update-index: update options and section formatting Omri Sarig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqqfqwsk4a6.fsf@gitster.g \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=omri.sarig13@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox