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

Re: ab/* topics (was: Re: What's cooking in git.git (Nov 2018, #01; Thu, 1))

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Nov 1, 2018, 13:46 UTC
Message-ID
<87va5gkj0e.fsf@evledraar.gmail.com>
In-Reply-To
<20181101131022.GU30222@szeder.dev>
On Thu, Nov 01 2018, SZEDER Gábor wrote:
Show 16 quoted lines
> On Thu, Nov 01, 2018 at 12:02:01PM +0100, Ævar Arnfjörð Bjarmason wrote:
>> Could you please pick up
>> https://public-inbox.org/git/20181024114725.3927-1-avarab@gmail.com/ ?
>> It seems to have fallen between the cracks and addressed the feedback on
>> v1, and looks good to me (and nobody's objected so far...).
>
> I didn't object, because in
>
>   https://public-inbox.org/git/87muqzllh0.fsf@evledraar.gmail.com/
>
> you asked for "a more general review than just the problem of how
> we turn an env variable into a boolean".
>
> However, if you push that patch with 'sh-i18n--helper' as-is, then I
> do object now: parsing a boolean in shell is not at all that difficult
> to justify this new command.

So instead of calling a helper (which is undocumented, and only used by git itself internally) you'd instead like to have some shellscript thingy like:

    if test $value = 'true' -o $value = '1' [....]
    then
        exit 0
    elif test $value = 'false' -o $value = '0' [...]

Sure, if that's the consensus I can change that, but it seems like the opposite of the direction we're moving with the general *.sh -> *.c migration. I.e. implementing helpers whenever possible instead of adding new shellscript-only logic.

Previous: SZEDER GáborNext: SZEDER Gábor
Message 4 of 10 in “What's cooking in git.git (Nov 2018, #01; Thu, 1)”
  1. Junio C HamanoNov 1, 2018
  2. ab/* topics (was: Re: What's cooking in git.git (Nov 2018, #01; Thu, 1))Ævar Arnfjörð Bjarmason, Nov 1, 2018
  3. SZEDER GáborNov 1, 2018
  4. Ævar Arnfjörð BjarmasonNov 1, 2018
  5. SZEDER GáborNov 1, 2018
  6. Junio C HamanoNov 1, 2018
  7. Duy NguyenNov 1, 2018
  8. Ævar Arnfjörð BjarmasonNov 1, 2018
  9. master updated? (was Re: What's cooking in git.git (Nov 2018, #01; Thu, 1))Derrick Stolee, Nov 1, 2018
  10. Junio C HamanoNov 2, 2018

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.