Re: [PATCH v8 08/14] merge-resolve: rewrite in C
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Aug 17, 2022, 02:16 UTC
- Message-ID
- <220817.86h72ba9uh.gmgdl@evledraar.gmail.com>
- In-Reply-To
- <20220809185429.20098-9-alban.gruin@gmail.com>
On Tue, Aug 09 2022, Alban Gruin wrote:
I think the rest of this series has been careful to keep output as-is (in some cases arguably to a fault, e.g. carrying forward two "gettextln" invocations as two puts(), which we should almost definitely fold into one string).
But here:
Show 5 quoted lines
> - gettextln "Error: Your local changes to the following files would be overwritten by merge"
> [...]
> + error(_("Your local changes to the following files "
> + "would be overwritten by merge:\n %s"),
> + sb.buf);We introduce a subtle behavior change, we used to say "Error:", but now it's "error:". Also since a1fd2cf8cd6 (i18n: mark message helpers prefix for translation, 2022-06-21) the interaction with how "error: " is translated is different, but let's leave that aside.
Now, I think the change probably makes sense & isn't risky, but perhaps note it in a commit message, or even precede it with a commit to s/Error/error/g in the *.sh code before the migration?
Also, if we *are* changing it while we're at it let's also s/Your/your/, no? I see some other uses in other pre-existing merge*.c files, so maybe the unusual casing is magical.