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

Re: Anomalous conflicts during git rebase

From
Aadr3nald0s@gmail.com <adr3nald0s@gmail.com>
Date
Dec 28, 2007, 15:35 UTC
Message-ID
<m3odca7ry1.fsf@euroclydon.lan>
In-Reply-To
<20071227225703.B33A25A709@dx.sixt.local>
Johannes Sixt <johannes.sixt@telecom.at> writes:
Show 19 quoted lines
> adr3nald0s@gmail.com wrote:
>> On a clone of linux-2.6:
>> 
>>     git checkout -b topic/test v2.6.15
>>     touch drivers/a-file.c
>>     git add drivers/a-file.c
>>     git commit -m 'Add a file'
>>     git checkout -b temp0 v2.6.16
>>     git rebase topic/test
>> 
>> I get the following:
>> 
>>     Applying [ACPI] handle ACPICA 20050916's acpi_resource.type rename
> ..
>>     CONFLICT (content): Merge conflict in drivers/char/hpet.c
> ..
>> Is this a bug, or is there a reason I am seeing conflicts in files
>> I've never touched?
>

I am not picking on you, Johannes, but I was expecting a response like this:

> You are using the rebase the wrong way round.

I am very well aware of how rebase is intended to be used. The components of git are not always used for their semantic purpose. As recommended frequently on this list, it is common to bend them to your purpose and use them in non-intuitive ways.

The purpose of the commands above is to have a git repository from 2.6.15 forward that has our code, XEN and some cherry-pick'd back-ported fixes integrated throughout. We will be doing a lot of git-bisect'ing to find where various things changed that break our code and certain edge-case usages of XEN.

So my question stands and it is not, "Adr3nalD0S, why _would_ you do this?" It is, "Why does git report conflicts that do not exist?"

P.S. This isn't the first project I have run into this on. It's just the first one where I decided to try and do something about it.

Previous: Johannes SixtNext: Daniel Barkalow
Message 3 of 8 in “Anomalous conflicts during git rebase”
  1. adr3nald0s@gmail.comDec 27, 2007
  2. Johannes SixtDec 27, 2007
  3. adr3nald0s@gmail.comDec 28, 2007
  4. Daniel BarkalowDec 27, 2007
  5. adr3nald0s@gmail.comDec 28, 2007
  6. Daniel BarkalowDec 28, 2007
  7. adr3nald0s@gmail.comDec 28, 2007
  8. Björn SteinbrinkDec 28, 2007

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.