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

The update-index man page had references to several options, which were
missing the relevant markers, causing them to be formatted as text
instead of as references.

Signed-off-by: Omri Sarig <omri.sarig13@gmail.com>
---
 Documentation/git-update-index.adoc | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

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.
 
 --ignore-submodules::
 	Do not try to update submodules.  This option is only respected
-	when passed before --refresh.
+	when passed before `--refresh`.
 
 --unmerged::
-        If --refresh finds unmerged changes in the index, the default
+        If `--refresh` finds unmerged changes in the index, the default
 	behavior is to error out.  This option makes 'git update-index'
         continue anyway.
 
 --ignore-missing::
-	Ignores missing files during a --refresh
+	Ignores missing files during a `--refresh`
 
 --cacheinfo <mode>,<object>,<path>::
 --cacheinfo <mode> <object> <path>::
@@ -145,7 +145,7 @@ you will need to handle the situation manually.
 
 --force-remove::
 	Remove the file from the index even when the working directory
-	still has such a file. (Implies --remove.)
+	still has such a file. (Implies `--remove`.)
 
 --replace::
 	By default, when a file `path` exists in the index,

base-commit: 03b41523c576f26ad34085378717a0c1b287470f

             reply	other threads:[~2026-11-22 15:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-22 15:25 Omri Sarig [this message]
2026-11-22 15:36 ` [PATCH v2] doc: update-index: format options correctly Omri Sarig
2026-11-22 20:19 ` [PATCH] doc: update-index: Format " Junio C Hamano
2026-11-23 15:32   ` 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=20261122152538.107580-1-omri.sarig13@gmail.com \
    --to=omri.sarig13@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.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