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

Re: Please help provide clarity on git rebase internals

From
Johannes Sixt <j6t@kdbg.org>
Date
Sep 8, 2014, 18:07 UTC
Message-ID
<540DF064.5010907@kdbg.org>
In-Reply-To
<CAE2xRkHgnXK84u5zeLyVZqAnvu3u+0gSgaB+smFXu6Y7pkY1kQ@mail.gmail.com>
Am 08.09.2014 13:25, schrieb Colin Yates:
> For example, let's imagine that #f1 removed fileA, some time later #d1
Assumption: #d1 is in the branch you call "develop HEAD".
> added a line to that file. If I was doing a merge then of course this
> should be a conflict, however applying #f1 to develop HEAD should work
> even if fileA has changed (i.e. #f1 removes the updated fileA).

No. You should get the very same conflict, because the content that #f1 removed is not identical to the content on develop HEAD anymore.

With rebase you generally get the same conflicts as if you did a merge. But since rebase applies changes only piece-wise, you get the conflicts also only piece-wise. (Sometimes you can be lucky that you get no conflicts due to the nature of changes, sometimes you can also have bad luck and see more conflicts.)

-- Hannes
Previous: Colin YatesNext: Fabian Ruch
Message 2 of 3 in “Please help provide clarity on git rebase internals”
  1. Colin YatesSep 8, 2014
  2. Johannes SixtSep 8, 2014
  3. Fabian RuchSep 19, 2014

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.