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

Re: Feature request: Exponential search in git bisect

From
Christian Couder <christian.couder@gmail.com>
Date
Oct 10, 2020, 09:46 UTC
Message-ID
<CAP8UFD16WX-HE6TW2Q15a3us8UMaogPpR+0C8shiEdP3-Cba=Q@mail.gmail.com>
In-Reply-To
<CAP8UFD2dWrUXJUuiFtgCu6krbnbGGqJZ7K+6KqstGTcNmSc_xQ@mail.gmail.com>

On Sat, Oct 10, 2020 at 11:22 AM Christian Couder <christian.couder@gmail.com> wrote:

>
> On Fri, Oct 9, 2020 at 9:35 PM Manuel Bärenz <manuel@enigmage.de> wrote:
Show 13 quoted lines
> > That's problematic because then I might accidentally mark a
> > commit as good that was already untestable bad. Given that bisect has no
> > undo functionality, that can quickly mess up my search. Distinguishing
> > untestable good from untestable bad is really hard automatically. I
> > shouldn't have to do that.
>
> Sometimes it's not very difficult to test if the feature has been
> implemented yet or not. For example with Git you could check if an
> option for a command has been implemented by just checking if it
> appears in the doc. So the bisection script could first check that and
> exit 0 (which means good) if the option doesn't appear in the doc. If
> it appears in the doc, then it could do the regular test: "skip" if
> untestable, "good" if there is no bug, "bad" otherwise.

Also note that it might actually be simpler in many cases to find when a feature has been implemented by different means than some checks in the script.

For example in the above example to find using the documentation when an option for a Git command has been implemented, one could use:

git log --reverse  -S'--option' Documentation/git-command.txt

It could also work by using `git log --reverse -S...` to find when some functions or variables related to the feature appeared in the code itself.

Previous: Christian CouderNext: Philip Oakley
Message 3 of 10 in “Feature request: Exponential search in git bisect”
  1. Manuel BärenzOct 9, 2020
  2. Christian CouderOct 10, 2020
  3. Christian CouderOct 10, 2020
  4. Philip OakleyOct 25, 2020
  5. Junio C HamanoOct 26, 2020
  6. Philip OakleyOct 26, 2020
  7. Manuel BärenzNov 1, 2020
  8. Ævar Arnfjörð BjarmasonOct 27, 2020
  9. Manuel BärenzNov 1, 2020
  10. Ævar Arnfjörð BjarmasonNov 2, 2020

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.