Re: [PATCH v3] l10n: reformat some localized strings for v2.23.0
- From
Jeff King <peff@peff.net>
- Date
- Aug 6, 2019, 18:10 UTC
- Message-ID
- <20190806181044.GA7005@sigill.intra.peff.net>
- In-Reply-To
- <xmqqo912ji1k.fsf@gitster-ct.c.googlers.com>
On Tue, Aug 06, 2019 at 10:54:47AM -0700, Junio C Hamano wrote:
Show 9 quoted lines
> Jean-Noël Avila <jn.avila@free.fr> writes: > > > Signed-off-by: Jean-Noël Avila <jn.avila@free.fr> > > --- > > builtin/checkout.c | 2 +- > > builtin/fetch.c | 15 +++++++++++---- > > 2 files changed, 12 insertions(+), 5 deletions(-) > > Thanks. Folks, does this look sensible (it does to me)?
Yes, modulo a funny indent in the final hunk (git-am will complain about it).
I think we can take this as-is, but I did notice one thing when I actually looked carefully at the surrounding code...
Show 5 quoted lines
> > if (advice_fetch_show_forced_updates) {
> > if (!fetch_show_forced_updates) {
> > - warning(_("Fetch normally indicates which branches had a forced update, but that check has been disabled."));
> > - warning(_("To re-enable, use '--show-forced-updates' flag or run 'git config fetch.showForcedUpdates true'."));
> > + warning(_(warn_show_forced_updates));This is controlled by advice.fetchShowForcedUpdates. Should these warning() calls actually be advise()? In which case everything I said about newlines and prefixes would then just work out, because advise() does prefix each line independently. I'm happy to punt on that until post-release, though, in the name of calming things down rather than stirring them up. :)
-Peff