From: kristofferhaugsbakk@fastmail.com
To: git@vger.kernel.org
Cc: Kristoffer Haugsbakk <code@khaugsbakk.name>,
gitster@pobox.com, jn.avila@free.fr, peff@peff.net
Subject: [PATCH v2] doc: diff-options.adoc: make *.noprefix split translatable
Date: Sun, 1 Mar 2026 20:21:14 +0100 [thread overview]
Message-ID: <V2_better_for_translators.43b@msgid.xyz> (raw)
In-Reply-To: <better_for_translators.424@msgid.xyz>
From: Kristoffer Haugsbakk <code@khaugsbakk.name>
We cannot split single words like what we did in the previous
commit. That is because the doc translations are processed in
bigger chunks.
Instead write the two paragraphs with the only variations being this
configuration variable.
Reported-by: Jean-Noël Avila <jn.avila@free.fr>
Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name>
---
Notes (series):
Notes to the maintainer: based on topic kh/format-patch-noprefix-is-boolean
to fix the issue reported in <ff86f877-4b75-403d-a5a4-10ab528a9691@free.fr>
v2:
• fix `endif`
• Don’t use `TRANSLATORS` callout
Documentation/diff-options.adoc | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/Documentation/diff-options.adoc b/Documentation/diff-options.adoc
index 8f632d5fe1a..fcfcdf0286e 100644
--- a/Documentation/diff-options.adoc
+++ b/Documentation/diff-options.adoc
@@ -859,12 +859,18 @@ endif::git-format-patch[]
Do not show any source or destination prefix.
`--default-prefix`::
+ifdef::git-format-patch[]
Use the default source and destination prefixes ("a/" and "b/").
- This overrides configuration variables such as
-ifndef::git-format-patch[`diff.noprefix`,]
-ifdef::git-format-patch[`format.noprefix`,]
+ This overrides configuration variables such as `format.noprefix`,
`diff.srcPrefix`, `diff.dstPrefix`, and `diff.mnemonicPrefix`
(see linkgit:git-config[1]).
+endif::git-format-patch[]
+ifndef::git-format-patch[]
+ Use the default source and destination prefixes ("a/" and "b/").
+ This overrides configuration variables such as `diff.noprefix`,
+ `diff.srcPrefix`, `diff.dstPrefix`, and `diff.mnemonicPrefix`
+ (see linkgit:git-config[1]).
+endif::git-format-patch[]
`--line-prefix=<prefix>`::
Prepend an additional _<prefix>_ to every line of output.
Interdiff against v1:
diff --git a/Documentation/diff-options.adoc b/Documentation/diff-options.adoc
index e4d02cc93a9..fcfcdf0286e 100644
--- a/Documentation/diff-options.adoc
+++ b/Documentation/diff-options.adoc
@@ -859,7 +859,6 @@ endif::git-format-patch[]
Do not show any source or destination prefix.
`--default-prefix`::
-// TRANSLATORS: format.noprefix / diff.noprefix
ifdef::git-format-patch[]
Use the default source and destination prefixes ("a/" and "b/").
This overrides configuration variables such as `format.noprefix`,
@@ -871,7 +870,7 @@ ifndef::git-format-patch[]
This overrides configuration variables such as `diff.noprefix`,
`diff.srcPrefix`, `diff.dstPrefix`, and `diff.mnemonicPrefix`
(see linkgit:git-config[1]).
-ifndef::git-format-patch[]
+endif::git-format-patch[]
`--line-prefix=<prefix>`::
Prepend an additional _<prefix>_ to every line of output.
Range-diff against v1:
1: 55e56c90959 ! 1: 07acc52c3bc doc: diff-options.adoc: make *.noprefix split translatable
@@ Commit message
Instead write the two paragraphs with the only variations being this
configuration variable.
- It’s not easy to spot the difference here. So let’s leave a comment
- for translators.
-
Reported-by: Jean-Noël Avila <jn.avila@free.fr>
Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name>
+
+ ## Notes (series) ##
+ Notes to the maintainer: based on topic kh/format-patch-noprefix-is-boolean
+ to fix the issue reported in <ff86f877-4b75-403d-a5a4-10ab528a9691@free.fr>
+
+ v2:
+ • fix `endif`
+ • Don’t use `TRANSLATORS` callout
+
## Documentation/diff-options.adoc ##
@@ Documentation/diff-options.adoc: endif::git-format-patch[]
Do not show any source or destination prefix.
`--default-prefix`::
-+// TRANSLATORS: format.noprefix / diff.noprefix
+ifdef::git-format-patch[]
Use the default source and destination prefixes ("a/" and "b/").
- This overrides configuration variables such as
@@ Documentation/diff-options.adoc: endif::git-format-patch[]
+ This overrides configuration variables such as `diff.noprefix`,
+ `diff.srcPrefix`, `diff.dstPrefix`, and `diff.mnemonicPrefix`
+ (see linkgit:git-config[1]).
-+ifndef::git-format-patch[]
++endif::git-format-patch[]
`--line-prefix=<prefix>`::
Prepend an additional _<prefix>_ to every line of output.
base-commit: b9b583bd007ca814ebd362bdd6441aac02e9414b
--
2.53.0.26.g2afa8602a26
next prev parent reply other threads:[~2026-03-01 19:22 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-18 20:26 [PATCH 0/2] format-patch: make boolean and mention in diff-options.adoc kristofferhaugsbakk
2026-02-18 20:26 ` [PATCH 1/2] format-patch: make format.noprefix a boolean kristofferhaugsbakk
2026-02-19 18:03 ` Junio C Hamano
2026-02-23 23:25 ` Kristoffer Haugsbakk
2026-02-20 12:28 ` Jeff King
2026-02-18 20:26 ` [PATCH 2/2] doc: diff-options.adoc: show format.noprefix for format-patch kristofferhaugsbakk
2026-02-19 18:10 ` Junio C Hamano
2026-02-23 23:30 ` [PATCH v2 0/2] format-patch: make boolean and mention in diff-options.adoc kristofferhaugsbakk
2026-02-23 23:30 ` [PATCH v2 1/2] format-patch: make format.noprefix a boolean kristofferhaugsbakk
2026-02-23 23:30 ` [PATCH v2 2/2] doc: diff-options.adoc: show format.noprefix for format-patch kristofferhaugsbakk
2026-02-27 9:57 ` Jean-Noël Avila
2026-02-27 16:51 ` Junio C Hamano
2026-02-28 12:20 ` kristofferhaugsbakk
2026-02-28 14:08 ` Jean-Noël AVILA
2026-03-01 19:21 ` kristofferhaugsbakk [this message]
2026-03-02 16:53 ` [PATCH v2] doc: diff-options.adoc: make *.noprefix split translatable Junio C Hamano
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=V2_better_for_translators.43b@msgid.xyz \
--to=kristofferhaugsbakk@fastmail.com \
--cc=code@khaugsbakk.name \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jn.avila@free.fr \
--cc=peff@peff.net \
/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