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

Re: [PATCH] help: report on whether or not gettext is enabled

From
Patrick Steinhardt <ps@pks.im>
Date
Jan 20, 2026, 05:47 UTC
Message-ID
<aW8W-SzorzDC8-rg@pks.im>
In-Reply-To
<xmqqsec13zsd.fsf@gitster.g>
On Mon, Jan 19, 2026 at 04:15:14PM -0800, Junio C Hamano wrote:
Show 19 quoted lines
> Patrick Steinhardt <ps@pks.im> writes:
> 
> >> Combined with the vintage of Git binary that had these help text,
> >> the fact that an "enabled" line is missing is enough clue to
> >> diagnose.
> >> ...
> >
> > One reason why I personally prefer to have enabled/disabled is that it
> > allows you to discern the following two cases:
> >
> >   - You have a modern version of Git that doesn't have gettext.
> >
> >   - You have an old version of Git that doesn't know to print
> >     information about whether or not gettext is enabled.
> 
> When you see no "gettext:" line in the report, you can tell between
> the above two cases by looking at what the first entry in the same
> report "git version --build-options" produced, which is the Git
> version, can't you?

Fair, that's possible. It still feels roundabout though as now the user also needs to know when this feature was implemented. That's why I lean towards just adding the info in both enabled and disabled cases: it gives you the information unconditionally. We don't really lose anything on our side, and the end user has an easier job to figure out whether the feature is enabled or not.

But as I said, I don't feel strongly enough about this to request any changes.

Thanks!
Patrick
Previous: Junio C Hamano
Message 7 of 7 in “help: report on whether or not gettext is enabled”
  1. help: report on whether or not gettext is enabledJiang Xin, Jan 16, 2026
  2. Junio C HamanoJan 16, 2026
  3. help: report on whether or not gettext is enabledJiang Xin, Jan 17, 2026
  4. Patrick SteinhardtJan 19, 2026
  5. Jiang XinJan 19, 2026
  6. Junio C HamanoJan 20, 2026
  7. Patrick SteinhardtJan 20, 2026

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.