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

Effective difference between git-rebase and git-resolve

From
MSMarc Singer <elf@buici.com>
Date
Mar 25, 2006, 03:54 UTC
Message-ID
<20060325035423.GB31504@buici.com>

The process I've been using to keep my patches current with the latest development is this:

  git checkout linus && git pull linus
  git checkout work
When I'm ready to merge,
  git resolve work linus "Update with head"
  git tag basis

This lets me diff against basis even when the linus branch continues to follow the latest developments.

Today, I wanted to move everything forward. But the resolve failed to merge some files. In fact, one file was apparently so thorny that resolve just gave up and left no working file. Bothersome, but I recovered by moving back to the previous work point.

Then, I found git-rebase which seems to be more what I'd like to use since it moves my patches along on top of the main development line.

  git rebase linus

This time, almost everything merged without a hitch except for the thorny file from before. I edited the file, removing the conflict markers, and started a build. But what I found was that some of the changes I'd made were no longer present. Several files showed no sign of the patches even though the kernel versions hadn't changed.

So, I have a couple of questions:
  1) Am I using rebase correctly?
  2) If not, did it leave some of my changes uncommitted and hidden
     somewhere? git-ls-files --unmerged shows no sign of them.
  3) Do I have to pull all of my patches off, apply them to the head
     of the tree, and only use git-rebase to make this work?
  4) Should I prefer rebase over resolve?
Next: Linus Torvalds
Message 1 of 10 in “Effective difference between git-rebase and git-resolve”
  1. Marc SingerMar 25, 2006
  2. Linus TorvaldsMar 25, 2006
  3. Junio C HamanoMar 25, 2006
  4. Marc SingerMar 25, 2006
  5. Junio C HamanoMar 25, 2006
  6. J. Bruce FieldsMar 26, 2006
  7. Junio C HamanoMar 25, 2006
  8. Johannes SchindelinMar 25, 2006
  9. Mark WoodingMar 25, 2006
  10. Johannes SchindelinMar 25, 2006

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.