Re: [PATCH v2 2/2] doc: diff-options.adoc: show format.noprefix for format-patch
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 27, 2026, 16:51 UTC
- Message-ID
- <xmqq4in2t9j8.fsf@gitster.g>
- In-Reply-To
- <ff86f877-4b75-403d-a5a4-10ab528a9691@free.fr>
Jean-Noël Avila <jn.avila@free.fr> writes:
Show 19 quoted lines
>> `--default-prefix`::
>> Use the default source and destination prefixes ("a/" and "b/").
>> - This overrides configuration variables such as `diff.noprefix`,
>> + This overrides configuration variables such as
>> +ifndef::git-format-patch[`diff.noprefix`,]
>> +ifdef::git-format-patch[`format.noprefix`,]
>> `diff.srcPrefix`, `diff.dstPrefix`, and `diff.mnemonicPrefix`
>> (see linkgit:git-config[1]).
>>
>
> Hello,
>
> This kind of sentence assembly does not fit well with translations. Each
> hunk of the sentence is processed separately and it is a difficulty for
> translators as they need to understand the surrounding context of a
> segment when translating it.
>
> It is safer to just write the whole paragraph, or at least a sentence in
> the ifdef/ifndef sections.Thanks, this particular patch in question is already in 'next', though.