]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: diff-options.adoc: make *.noprefix split translatable
authorKristoffer Haugsbakk <code@khaugsbakk.name>
Sun, 1 Mar 2026 19:21:14 +0000 (20:21 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Mar 2026 16:53:28 +0000 (08:53 -0800)
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/diff-options.adoc

index 8f632d5fe1a71cba9ca1a287bdcb8c41e592fb85..fcfcdf0286edd039a27446086d9c305a0498ef8c 100644 (file)
@@ -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.