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

Re: git-bisect problem

From
Linus Torvalds <torvalds@osdl.org>
Date
Feb 14, 2006, 01:14 UTC
Message-ID
<Pine.LNX.4.64.0602131706460.3691@g5.osdl.org>
In-Reply-To
<20060213165620.11ec6051.akpm@osdl.org>
On Mon, 13 Feb 2006, Andrew Morton wrote:
> 
> The bug is in Jeff's tree only
> (git+ssh://master.kernel.org/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git#ALL)
> so I wanted to perform the bisection on the git-netdev-all branch.

Actually, what you should do, is not play any games at all, but just tell "git bisect" what the problem is. It will do the right thing.

So in this case, what you do is _literally_ to
	# fetch Jeff's tree (you obviously had this already, but I just 
	# want to point it out as a "name that branch" thing)
	git fetch netdev-all
	# we know that that tree is broken
	git bisect start
	git bisect bad netdev-all
	# We know that Linus' top-of-tree doesn't have the bug
	git bisect good origin

and off you go. It absolutely magically does the right thing, and will bisect stuff that is only in the netdev branch and not in my tree. No guessing necessary, no need to try to figure out what the differences are. git will do it all for you.

And notice how it will work perfectly well, even if the two points you have tested AREN'T EVEN DIRECTLY RELATED! The "good" and "bad" points do not have to have any direct relationship other than a common parent _somewhere_. "git bisect" really is that good.

(The above is obviously assuming that "origin" is set to my tree, self-aggrandizing bastard that I am, and that you've set up a .git/remotes/netdev-all file pointing to Jeff's tree - your setup may vary from this, so you'd have to change the lines to match)

			Linus
Previous: Andrew MortonNext: Petr Baudis
Message 20 of 23 in “git-bisect problem”
  1. Andrew MortonFeb 13, 2006
  2. Junio C HamanoFeb 13, 2006
  3. Andrew MortonFeb 13, 2006
  4. Ryan AndersonFeb 13, 2006
  5. Andrew MortonFeb 13, 2006
  6. Fernando J. PeredaFeb 13, 2006
  7. Luben TuikovFeb 13, 2006
  8. Luben TuikovFeb 13, 2006
  9. cat-file (was Re: git-bisect problem)Joshua N Pritikin, Feb 13, 2006
  10. Ryan AndersonFeb 13, 2006
  11. Andrew MortonFeb 13, 2006
  12. Linus TorvaldsFeb 13, 2006
  13. Luben TuikovFeb 13, 2006
  14. Andrew MortonFeb 13, 2006
  15. Junio C HamanoFeb 14, 2006
  16. Junio C HamanoFeb 13, 2006
  17. Andrew MortonFeb 13, 2006
  18. Junio C HamanoFeb 14, 2006
  19. Andrew MortonFeb 14, 2006
  20. Linus TorvaldsFeb 14, 2006
  21. Petr BaudisFeb 14, 2006
  22. Petr BaudisFeb 14, 2006
  23. Junio C HamanoFeb 14, 2006

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.