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

Re: RFC: Make git bisect submodule aware.

From
Johan Herland <johan@herland.net>
Date
Jun 9, 2010, 14:57 UTC
Message-ID
<201006091657.21735.johan@herland.net>
In-Reply-To
<6AC4E373-C28F-455E-93A6-6FA5A57723A2@gmail.com>
On Wednesday 09 June 2010, Steven Michalske wrote:
Show 18 quoted lines
> When git bisect discovers that the change set that creates the
> failure also contains a submodule change, that submodule should then
> be bisected starting with the good super modules code and working to
> a break in the sub module.  If the change contains submodule change
> and super code changes than the bisection gets trickier, so we need
> some ideas on how to solve that search.
>
> Example:
>
> Super: A-B-C-D-E
> Sub:   s-s-y-y-z
>
> Where s is not required to be a parent of y,  meaning that there
> might be 300 commits or just 1 between s and y in the submodule or
> they are disjoint then the bisecting should happen both routes into
> the submodule.
>
> [...]

My general feeling about this scenario is that 'git bisect' should not automatically descend into submodules and continue bisecting there.

As you observe, there may be weird co-dependencies between the superproject and the submodule (or even between different submodules), so the safest default in this situation is for 'git bisect' to simply bail out.

Then the user can at his/her leisure figure out if the best way to proceed is indeed a nested 'git bisect' in the submodule, and if so, which is the most appropriate version of the superproject (or other submodules) to use for this nested bisect.

Trying to make Git too "clever" about these things is likely to come back and bite us in the ass.

...Johan
-- 
Johan Herland, <johan@herland.net>
www.herland.net
Previous: Steven Michalske
Message 2 of 2 in “RFC: Make git bisect submodule aware.”
  1. Steven MichalskeJun 9, 2010
  2. Johan HerlandJun 9, 2010

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.