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

Re: Cherry picking instead of merges.

From
David Brown <git@davidb.org>
Date
Jul 4, 2008, 04:40 UTC
Message-ID
<20080704044032.GA4445@old.davidb.org>
In-Reply-To
<20080704001003.GA19053@atjola.homenet>
On Fri, Jul 04, 2008 at 02:10:03AM +0200, Björn Steinbrink wrote:
Show 9 quoted lines
>The other one is merging:
>
>  A---B---C---M
>   \         /
>    D---E---/
>
>Of course, you should end up with the same tree either way. It's just a
>different way of getting towards that final state. So commit E' and
>commit M, while different commits, would point to the same tree object.

Ok. I guess I need to explain a little further. The advice I've gotten is good, BTW.

After we've resolved the merge and committed it, we've then discovered that it doesn't work. However, there are around 100 commits on both branches of the merges and it would be nice to come up with some way of doing something like a bisect.

The trick is that the branch being merged in doesn't actually work on our platform, so I can't just test the alternate branch.

But, git-bisect isn't being all that helpful here. The problem is that the only conflicts we resolved is how the two trees were put together. Picking points in the middle seem to generate lots of similar, but not quite the same conflicts.

A cherry-picked tree would allow for an easy bisect, since all of the intermediary versions would work. If I somehow knew magical points within the other tree I could do some number of merges and the bisect would still work. I suppose I could do the merges one at a time, but it would make the history rather verbose.

Thanks, David

Previous: Björn SteinbrinkNext: Linus Torvalds
Message 9 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.