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

Re: current git kernel has strange problems during bisect

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Jan 11, 2009, 19:13 UTC
Message-ID
<alpine.LFD.2.00.0901111113150.6528@localhost.localdomain>
In-Reply-To
<200901111620.03345.borntraeger@de.ibm.com>
On Sun, 11 Jan 2009, Christian Borntraeger wrote:
> 
> I think we should really avoid merging subtrees to the linux kernel. It 
> makes bisecting a real PITA. Furthermore, It is unlikely, but what if 
> the problem is part of the 581 changesets from btrfs?
Umm, yes? 

The thing is, btrfs was developed as an outside module. There are two choices: import it with history, or import it without history. The history is interesting, so importing _with_ it is a much nicer one. But that does mean that btrfs introduces into the kernel tree the same behaviour we've had in the git development tree for a long time - multiple root commits, and "independent" branches that get merged.

It's actually very natural for git, and the btrfs tree actually was re-done with "git filter-branch" to move all the history so that it is in fs/btrfs, rather than moving around from the root like the _original_ development was done. So it's not technically a subtree merge, it's a regular merge with just two different root commits - one for the original base kernel development, one for the original btrfs kernel development.

For bisect, it's indeed somewhat annoying, and we could have perhaps done some things a bit differently, but it's about the closest you can get to "real history" without making the first btrfs merge-point a _total_ disaster.

For bisect purposes, if you know you're not chasing down a btrfs issue, you can do

	git bisect good 34353029534a08e41cfb8be647d734b9ce9ebff8

where that commit 34353029 is the last one which has _just_ the btrfs files. The next commit is when it does "Merge Btrfs into fs/btrfs", and that one has the whole kernel tree again.

			Linus
Previous: Boaz HarroshNext: Sam Ravnborg
Message 6 of 23 in “current git kernel has strange problems during bisect”
  1. Christian BorntraegerJan 11, 2009
  2. Christian BorntraegerJan 11, 2009
  3. Johannes SchindelinJan 11, 2009
  4. Christian BorntraegerJan 11, 2009
  5. Boaz HarroshJan 11, 2009
  6. Linus TorvaldsJan 11, 2009
  7. Sam RavnborgJan 11, 2009
  8. Alexey ZaytsevJan 11, 2009
  9. Pierre HabouzitJan 11, 2009
  10. Christian CouderJan 12, 2009
  11. Christian CouderJan 12, 2009
  12. Linus TorvaldsJan 11, 2009
  13. Christian BorntraegerJan 11, 2009
  14. Daniel BarkalowJan 11, 2009
  15. Kyle MoffettJan 13, 2009
  16. Andreas BombeJan 15, 2009
  17. Kyle MoffettJan 15, 2009
  18. Sam RavnborgJan 11, 2009
  19. Alexey ZaytsevJan 11, 2009
  20. Sam RavnborgJan 11, 2009
  21. Daniel BarkalowJan 11, 2009
  22. Andi KleenJan 11, 2009
  23. Johannes SchindelinJan 11, 2009

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.