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

Re: Cherry picking instead of merges.

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Jul 4, 2008, 06:36 UTC
Message-ID
<486DC4F2.70608@viscovery.net>
In-Reply-To
<alpine.LFD.1.10.0807032221190.2815@woody.linux-foundation.org>
Linus Torvalds schrieb:
Show 16 quoted lines
> IOW, let's say that you really do bisect things down to a merge and cannot 
> see what the fault in that merge is, you can literally do
> 
> 	# create a test-branch with the 'remote' side of the merge
> 	git checkout -b test-branch merge^2
> 
> 	# rebase that remote side on top of the local side
> 	git rebase merge^
> 
> and now you've linearized the merge temporarily just to be able to bisect 
> in that temporary branch what the bad interaction is. But once you've 
> bisected it, the temporary branch is again just junk - there's no real 
> value in saving it, because once you know _why_ the bug happened, you're 
> just better off going back to the original history and just fixing it (and 
> documenting the bug through the fix, rather than by addign extra-ugly 
> history).
FWIW, the same thing in different words is written in section
"Why bisecting merge commits can be harder than bisecting linear history"
of Documentation/user-manual.txt.
-- Hannes
Previous: Linus TorvaldsNext: Linus Torvalds
Message 11 of 13 in “Cherry picking instead of merges.”
  1. David BrownJul 3, 2008
  2. Alex RiesenJul 3, 2008
  3. Avery PennarunJul 3, 2008
  4. David BrownJul 3, 2008
  5. Samuel TardieuJul 3, 2008
  6. Linus TorvaldsJul 3, 2008
  7. David BrownJul 3, 2008
  8. Björn SteinbrinkJul 4, 2008
  9. David BrownJul 4, 2008
  10. Linus TorvaldsJul 4, 2008
  11. Johannes SixtJul 4, 2008
  12. Linus TorvaldsJul 4, 2008
  13. Linus TorvaldsJul 4, 2008

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.