git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Junio C HamanoNext: Junio C Hamano
Message 12 of 13 in “[L10N] Kickoff for Git 2.23.0 round #1”
  1. Jiang XinJul 30, 2019
  2. [RFC] l10n: fix some typos for v2.23.0Jean-Noël Avila, Aug 3, 2019
  3. Jiang XinAug 3, 2019
  4. l10n: reformat some localized strings for v2.23.0Jean-Noël Avila, Aug 3, 2019
  5. Jeff KingAug 3, 2019
  6. Jean-Noël AVILAAug 4, 2019
  7. Jeff KingAug 5, 2019
  8. Junio C HamanoAug 5, 2019
  9. Jeff KingAug 5, 2019
  10. l10n: reformat some localized strings for v2.23.0Jean-Noël Avila, Aug 6, 2019
  11. Junio C HamanoAug 6, 2019
  12. Jeff KingAug 6, 2019
  13. Junio C HamanoAug 6, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.