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

Re: js/bisect-in-c (was: What's cooking in git.git (Aug 2022, #06; Wed, 17))

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Aug 19, 2022, 14:28 UTC
Message-ID
<220819.86wnb4710k.gmgdl@evledraar.gmail.com>
In-Reply-To
<285nq583-p3p0-q9q3-90s9-q2po503rsp0n@tzk.qr>
On Fri, Aug 19 2022, Johannes Schindelin wrote:
Show 39 quoted lines
> On Thu, 18 Aug 2022, Ævar Arnfjörð Bjarmason wrote:
>
>> On Wed, Aug 17 2022, Junio C Hamano wrote:
>>
>> > * js/bisect-in-c (2022-06-27) 16 commits
>> >  - bisect: no longer try to clean up left-over `.git/head-name` files
>> >  - bisect: remove Cogito-related code
>> >  - Turn `git bisect` into a full built-in
>> >  - bisect: move even the command-line parsing to `bisect--helper`
>> >  - bisect: teach the `bisect--helper` command to show the correct usage strings
>> >  - bisect--helper: return only correct exit codes in `cmd_*()`
>> >  - bisect--helper: move the `BISECT_STATE` case to the end
>> >  - bisect--helper: make `--bisect-state` optional
>> >  - bisect--helper: align the sub-command order with git-bisect.sh
>> >  - bisect--helper: using `--bisect-state` without an argument is a bug
>> >  - bisect--helper: really retire `--bisect-autostart`
>> >  - bisect--helper: really retire --bisect-next-check
>> >  - bisect--helper: retire the --no-log option
>> >  - bisect: avoid double-quoting when printing the failed command
>> >  - bisect run: fix the error message
>> >  - bisect: verify that a bogus option won't try to start a bisection
>> >
>> >  Final bits of "git bisect.sh" have been rewritten in C.
>> >
>> >  Expecting a (hopefully final) reroll.
>> >  cf. <20627.86ilolhnnn.gmgdl@evledraar.gmail.com>
>>
>> The msgid here is typo'd, the correct one is
>> https://lore.kernel.org/git/220627.86ilolhnnn.gmgdl@evledraar.gmail.com/
>> (i.e. a "2" is missing from the front).
>>
>> The more recent
>> https://lore.kernel.org/git/220817.86pmgzabv0.gmgdl@evledraar.gmail.com/
>> also has some more follow-up, and a proposed fix-up for one of the
>> issues I noted with the series (the completion helper interaction with
>> the new "bisect").
>
> So now we should also include changes for the completion into this patch
> series? Are you serious?

The proposed fix-up is for a part of git.c that only exists with your series applied.

Before your series "git bisect--helper" supported "--git-completion-helper" (although not to do anything useful in practice).

With your series we have a "bisect" built-in. Built-ins by default claim to support "--git-completion-helper", but as your series also migrated the code away from parse_options() it doesn't anymore.

So it makes sense for the relevant patch(es) to update the corresponding flag as that's changed, see also the in-flight 68494127d6c (git.c: update NO_PARSEOPT markings, 2022-07-25).

Previous: Johannes SchindelinNext: Derrick Stolee
Message 4 of 11 in “What's cooking in git.git (Aug 2022, #06; Wed, 17)”
  1. Junio C HamanoAug 18, 2022
  2. js/bisect-in-c (was: What's cooking in git.git (Aug 2022, #06; Wed, 17))Ævar Arnfjörð Bjarmason, Aug 18, 2022
  3. Johannes SchindelinAug 19, 2022
  4. Ævar Arnfjörð BjarmasonAug 19, 2022
  5. Derrick StoleeAug 18, 2022
  6. Derrick StoleeAug 18, 2022
  7. ds/* (was Re: What's cooking in git.git (Aug 2022, #06; Wed, 17))Derrick Stolee, Aug 18, 2022
  8. Junio C HamanoAug 18, 2022
  9. vd/* (was: Re: What's cooking in git.git (Aug 2022, #06; Wed, 17))Victoria Dye, Aug 18, 2022
  10. Junio C HamanoAug 18, 2022
  11. Jonathan TanAug 18, 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.