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

Re: baffled again

From
TLTony Luck <tony.luck@gmail.com>
Date
Aug 24, 2005, 05:33 UTC
Message-ID
<12c511ca050823223333c41857@mail.gmail.com>
In-Reply-To
<200508232256.j7NMuR1q027892@agluck-lia64.sc.intel.com>

I'm at home, and too lazy to log in to work to look at my tree. But I have a theory as to what went wrong for me.

At the start I had a file, same contents in test and release branch.

I applied a patch to release, and pulled to test. So the contents are still the same, both with the patch applied.

Next, I was given a better patch (the first one just masked the real problem and happened to make the symptoms go away). This patch touches a completely different file. So I applied a patch to revert the change in release, and the new patch.

Now ... when I try to merge release into test, my guess is that GIT is looking at the common ancestor before I touched anything. So when it compares the current state of this file it sees that I have the bad patch in the test tree, and the release tree has the "original" version (which has had the patch applied and reverted ... so the contents are back at the original state).

So GIT decides that the test branch has had a patch, and the release branch hasn't ... and so it merges by keeping the version in test.

Plausible?
-Tony
Previous: tony.luck@intel.comNext: Linus Torvalds
Message 2 of 10 in “baffled again”
  1. tony.luck@intel.comAug 23, 2005
  2. Tony LuckAug 24, 2005
  3. Linus TorvaldsAug 24, 2005
  4. Junio C HamanoAug 24, 2005
  5. Daniel BarkalowAug 24, 2005
  6. Linus TorvaldsAug 24, 2005
  7. Linus TorvaldsAug 24, 2005
  8. Junio C HamanoAug 25, 2005
  9. Tony LuckAug 25, 2005
  10. Daniel BarkalowAug 24, 2005

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.