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

Re: js/bisect-in-c, was Re: What's cooking in git.git (Aug 2022, #05; Mon, 15)

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 17, 2022, 18:57 UTC
Message-ID
<xmqqtu6avgub.fsf@gitster.g>
In-Reply-To
<CABPp-BFAERLt_z-D=7gbXWVA9JgsqTP_2iW9BLe5S=YbsQ1V6w@mail.gmail.com>
Elijah Newren <newren@gmail.com> writes:
Show 9 quoted lines
>> >  Expecting a (hopefully final) reroll.
>> ...
>
> Could I vote for just merging it down, as-is?  As far as I can tell,
> ... Further, such changes, while likely
> desirable for consistency among Git commands, would likely move us
> away from "faithful conversion from shell to C", and thus is likely
> better to be done as a separate step on top of the existing series
> anyway[4].

If this were a faithful conversion, yes, merging it right now can be one good approach; add a faithful but not very C-like convesion first and then make it "more like C code" later.

I however got an impression from the review discussion that it subtly changes behaviour (IIRC, one thing pointed out was that exit codes are now different from the original---there may or may not be others, but my impression was they were all minor like the "exit code" one).

My "hopefully final" comment was not about a big rearchitecting change like use of parse-options API but about adjusting such minor behaviour diversion so that we can say "This may not be very C-like, and does not use much of our established API, but it is a fairly faithful bug-to-bug compatible translation. Let's take it and make it more like C incrementally". And of course, what was implied in "hopefully final" was that such adjustments would be tiny, trivial and can be done without much controversy. After all, I was aware that the series was otherwise reviewed and received extensive comments (sorry, I forgot that it was by you).

Thanks.
Previous: Johannes SchindelinNext: Elijah Newren
Message 5 of 13 in “What's cooking in git.git (Aug 2022, #05; Mon, 15)”
  1. Junio C HamanoAug 15, 2022
  2. js/bisect-in-c, was Re: What's cooking in git.git (Aug 2022, #05; Mon, 15)Johannes Schindelin, Aug 16, 2022
  3. Elijah NewrenAug 17, 2022
  4. Johannes SchindelinAug 17, 2022
  5. Junio C HamanoAug 17, 2022
  6. Elijah NewrenAug 17, 2022
  7. Junio C HamanoAug 17, 2022
  8. Johannes SchindelinAug 19, 2022
  9. Ævar Arnfjörð BjarmasonAug 19, 2022
  10. sy/mv-out-of-cone (was Re: What's cooking in git.git (Aug 2022, #05; Mon, 15))Victoria Dye, Aug 16, 2022
  11. Junio C HamanoAug 16, 2022
  12. Shaoxuan YuanAug 17, 2022
  13. cw/submodule-merge-messages (Was: Re: What's cooking in git.git (Aug 2022, #05; Mon, 15))Elijah Newren, Aug 17, 2022

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.