Article View: linux.kernel.git
Article #3591[PATCH v2] doc: update-index: format options correctly
From: Omri Sarig
Date: Sun, 22 Nov 2026 15:36
Date: Sun, 22 Nov 2026 15:36
68 lines
13040 bytes
13040 bytes
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>
---
After sending the patch, I noticed that the commit message was wrongly
capitalized, sorry about that.
Fixed in V2 now.
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,
Range-diff against v1:
1: ec32a90695 ! 1: 07112e8191 doc: update-index: Format options correctly
@@ Metadata
Author: Omri Sarig <omri.sarig13@gmail.com>
## Commit message ##
- doc: update-index: Format options correctly
+ doc: update-index: format options correctly
The update-index man page had references to several options, which were
missing the relevant markers, causing them to be formatted as text
base-commit: 03b41523c576f26ad34085378717a0c1b287470f
Technical Details
Message-ID:
<20261122153601.110226-1-omri.sarig13@gmail.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!193.141.40.65.MISMATCH!npeer.as286.net!npeer-ng0.as286.net!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76096-linux-kernel-git=dewy.ruReferences:
<20261122152538.107580-1-omri.sarig13@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!193.141.40.65.MISMATCH!npeer.as286.net!npeer-ng0.as286.net!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76096-linux-kernel-git=dewy.ru
From: omri.sarig13@gmail.com (Omri Sarig)
Newsgroups: linux.kernel.git
Subject: [PATCH v2] doc: update-index: format options correctly
Date: Sun, 22 Nov 2026 16:36:01 +0100
Organization: Usenet Network
Message-ID: <20261122153601.110226-1-omri.sarig13@gmail.com>
References: <20261122152538.107580-1-omri.sarig13@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="3667800"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:9ozOLQLcAHY3phbGeHFJ0tS6hoc= sha256:Vl2vceA4vG0WPU9zsfqpKFRdthnVjMPHvpRwMdVHS04=
sha1:GdWft155lOA58zricrLd82YXswY= sha256:UYy5fSqdXF3RVhcuzeJihDfD+C8+4/XavTM83CPBmmg=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id BBF3A125D80; Sun, 22 Nov 2026 18:36:47 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.149
X-Spam-Status: No, score=-3.149 tagged_above=-9999 required=6.31
tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001,
HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id DFv3Jt6de2UC;
Sun, 22 Nov 2026 18:36:44 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=git+bounces-76096-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
by mail.dewy.ru (Postfix) with ESMTPS id 8A3EB125D7A; Sun, 22 Nov 2026 18:36:35 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sto.lore.kernel.org (Postfix) with ESMTP id 72A7E6047C5; Sun, 22 Nov 2026 15:36:34 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1795361791;
b=1yIrxmLJtOHV0Xd3gdjIsVZ9pIjfwxQryWIDYH+n3Sp3z8G/pUJqJ+tuI7BICLe18Ax6
SMAKY1pnomUdYTqomXZJ1HcCsvRWDkKXShWuKdjxIE6O2CboZpH4SZMlch36CFNwZrDW8
Iuhh98UbwOOi7I5iY6D7Kvzb54dCii3ZGznVy4iysjE7gB9nyMvOY6e5FpV3uDRlIDfbF
vAmf6dlcoh+hME+9tr71deZOwM3fCW4+SRlpJYfoHG3EeeJ5KjN2BDvoMTaUsLiSNJaDI
zhgOA5NjnZ9eiUBprGjGUz/Z63Sml5HXC8TSnKkOPc8k2qRv6NI9dOS2ndqn685ZV3g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795361791;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:
References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:
Content-Transfer-Encoding;
bh=jU2YFwjvT7yD+Lv9DHlYxCDT3BY4fzqytSkt/yb5eUk=;
b=uJ83EEf98GBpBa5it4CDruTP/qL2bb4Dg+2JXpDLv3KT6l7NStpzHlY6xzOQ00TXRVyQ
us+YpG1e4fLPMi012GbaPdZ3/k3zYqiZoI3Hm1EXQbbf3vrLabnIDP2Vtq1ETGDG3WVBl
NGozoKLAq+tLS5ojyIKvDRNmw3jLdyFS5ZpZCmxcKx5gNL8RFaRDV/wtb6yQ1Yq9oSpxO
aA74t+B+BVG42Lb5/wuAkqQEEzEmgV/B5p/pItXFzIjQUkZxxaybGHFFt8+6fxpd9qa/g
cS+MJ5SuF6ttc8YBlvOtrmiQ2lfClcpJcWAgAaUHWEW49k1SVcBTjyb6tnoVHHAgxUA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=hnDkL3HX;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id CB37F606A334;
Sun, 22 Nov 2026 15:36:31 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=hnDkL3HX
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.218.45
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795361791;
b=ArF+Wa40J3jdBPNJcN+WLK6KLYnyyLOvOJHHxXpO6lfxkSC2k+mmrUSJNluk7jm/k2sk
YN56RqbH4yQpJSU/7tctwjjZLa1LjTlGp+R/5Myo27vwa5QGPeABGC6CGGWFuxzNfxUjT
nWt62KEgm7/0q/oddv93jOpUDl/GJXHbmqStFMbz9kWA7grWb3B+2Vbj9iZSJrz0gO2O8
Em9oVsfGfBCnbMtq3j72Vi8SChv8r57ai7Fh6YBVukJWMptjeCPuUuNeayK6G/n1/ePBt
6FcbHi5lzfY7MEejdiB7BFzaz/JU8s3LtDUP3kRJr8yyMesckf58GEJhWfZTbB/x84A==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795361791;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version:
Content-Transfer-Encoding;
bh=jU2YFwjvT7yD+Lv9DHlYxCDT3BY4fzqytSkt/yb5eUk=;
b=Lbt2BB9wDFOTgNbiFduF7dlOUtN+/HYWRhdPu9rFo4HOLcoipR9LeSFic6hOOgF4yOAZ
ZnRrI4BHrycWljegjKo+cJ6Az0KNAJz0Axo/LnvSSLD3yd3MfEKkC21Be88UZkHabEo32
W/zRSa8k7zOb6BQ6h+f37zA6oXANRgLfwE8IpMrnaQTKrAWv6OETjWONJfJVhNP4MPjKT
i0Bi9oHbD+93dlF5EUDEbmburUgZQIGo1svcEo7Iir6pSPmnvyRnK/xGxcaEkGwpLaQNC
kNUCYjWk9zBv2ws4YI4xwQ1oeLqEYFRgS/7nesCf821Oi3/inpsPGllCY+eelmaMIbw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=hnDkL3HX;
arc=none smtp.remote-ip=209.85.218.45
X-Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 98AB4606A32C
for <git@vger.kernel.org>; Sun, 22 Nov 2026 15:36:30 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 98AB4606A32C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-c4d28f75d62so414908666b.0
for <git@vger.kernel.org>; Sun, 22 Nov 2026 07:36:30 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1795361789; x=1795966589; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=jU2YFwjvT7yD+Lv9DHlYxCDT3BY4fzqytSkt/yb5eUk=;
b=hnDkL3HXD5flumF3/t9e2PN941pIWyMnXNac52oll7iAb/sDags2OtmfgAUf2U0vIv
qVbBpurDATSvCxRsPVYMWo7VoQUlIaAe4V8VumDHDC3ceBcgkROUXlpk0JqFfBhQzcyY
SBtn4R7k5prd2CRl3mGulrBExDzL2LnjZKCXLcpiD7/4LcoJPb/3nwp1Y+tRdCRT+iv/
QT2T586fQ+AfOO8P7aElwHFEbnunYf5jlh3SvQzfXzGUIaxARjZy1L9ltn76Ke3ICrj1
x7orIEql5uoyt6fx27gpQRuB1KAK0gHbpYJKxcn5h/3PZn2vvsi0l9tEx03RGUiBddo7
0JsQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795361789; x=1795966589;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to:content-type;
bh=jU2YFwjvT7yD+Lv9DHlYxCDT3BY4fzqytSkt/yb5eUk=;
b=g27Ii5+hx8IQyLL7NnETPNpaLJJ5ZTIa2lGsYSm9/vpUvq3h8lm6jSdpQSjjlMspCd
45SWY16THXiZ4PWCJlI4vlHNQd787p07fcR3hsWbyMvG5VHAnxlfEPpOW7i7b1tYIs1H
PlbfppEre0zwviv5oNIMfwRPcbEPn+FZHsMjvr2Mpy9TRNWZw4fDadW/MyqzP5J+9dNZ
oNBo2NinlNa7M1IjD5zo0fxOAsjO4ntFohKXFmOW9ft8NZgMHJTp/DH6dIenk+OA7pUb
RIkuzVM2JtGV0OFSfX7leUOSQtxy+fFbdHrTbiSmXJNHy4sc5zXd6nO4ocURXkKMHsle
1qhg==
X-Gm-Message-State: APuU4Z8FbZhLnGPay5K/y+FFHsb5wfshc5pWcgIJ5mV8rLMonWo5+YEI
KTKMy4r20u4LGZDXTbyGvXy+Mgw8rIEtPTXwSjKiLEg9tSKuC3K4grMKvzWniA==
X-Gm-Gg: AZFdTZd4tLzpO+JPiw068Il5/vCo8XaVnaugPTKyiXAHJWlx6uJ/wDlxiKrDUcqeD9+
lFEd+n6GQdXE9a+JuK+8cXNsS240NxW/HiafPHD2b0tfIEwDhjVzDTD7CF51bhv7z7HBKO+ajzj
pfzIdQAPZjQ8IjuQpgbR/dEQoG3+O/olzLRQyogrVaM10o8udA9mZ0KbsWCKc/h7OBYaNqGKznD
+ya+2sH1c4kUOb1N/fksSMZNB7IJqW4Zkvnvi7zYk8KAfTvdL78bVK6xcyY2qJ4mLz4XOcKl0vp
EgjGvul2zK16YG2FxKyq4j+ZO90l/A6T+A6JNLGSHoaWIuvnyvSfBC88H6L3L2q6SspfkKRxiiJ
Juk6jQ3N2ZDMw2d2ndXussMMdA5xqmQ+lfacdPKNAeW9F+FIyf3/jd08sk4taT8DLPobmUMqvcf
tdPffmyBc9lBBzy5JwFwkC5606JVuBm84TQOgQyAWWJQTgbl+bIrm8bpOm+SmhSsN7fhQOhTFIc
wPDVLR1kmbuDXxjqBDlQocqbxwc9eRUOS74Knj/jSc7cAd2sySsP3ZKighWHE0wTV0FJJSJcE6c
o4tap1znHDtcu+KuoGFKOboJRWxjZkwK43LiRg0yi2GvLs8onsM=
X-Received: by 2002:a17:906:f8cf:b0:c50:bf14:8ec1 with SMTP id a640c23a62f3a-c513ab4d93emr531709666b.33.1795361788721;
Sun, 22 Nov 2026 07:36:28 -0800 (PST)
X-Received: from omris-tuxedo ([217.71.1.73])
by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513afec177sm319118666b.72.2026.11.22.07.36.27
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sun, 22 Nov 2026 07:36:27 -0800 (PST)
X-Cc: Omri Sarig <omri.sarig13@gmail.com>,
Junio C Hamano <gitster@pobox.com>
X-Mailer: git-send-email 2.56.1.dirty
X-In-Reply-To: <20261122152538.107580-1-omri.sarig13@gmail.com>
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list