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

[PATCH] doc: update-index: Format options correctly

From
Omri Sarig <omri.sarig13@gmail.com>
Date
Nov 22, 2026, 15:25 UTC
Message-ID
<20261122152538.107580-1-omri.sarig13@gmail.com>

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
Next: Omri Sarig
Message 1 of 8 in “doc: update-index: Format options correctly”
  1. doc: update-index: Format options correctlyOmri Sarig, Nov 22, 2026
  2. doc: update-index: format options correctlyOmri Sarig, Nov 22, 2026
  3. Junio C HamanoNov 22, 2026
  4. Omri SarigNov 23, 2026
  5. Richard KerryNov 23, 2026
  6. Omri SarigNov 23, 2026
  7. Kristoffer HaugsbakkNov 24, 2026
  8. Junio C HamanoNov 23, 2026

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.