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

Re: [PATCH] provide a new "theirs" strategy, useful for rebase --onto

From
Paolo Bonzini <bonzini@gnu.org>
Date
Jun 8, 2008, 02:54 UTC
Message-ID
<484B49D5.8080708@gnu.org>
In-Reply-To
<7vfxrqrwjm.fsf@gitster.siamese.dyndns.org>
Show 6 quoted lines
> Because original E' was an amend of E, its log message explained
> everything E did and more.  You cannot leave that same commit message in
> E''.  What you did in E was already explained in the history, so now you
> would want to talk about the incremental change on top of it when you
> desribe E''.  For that, replaying of E' must stop to allow you to fix up
> the log message. 

Yes, I had suggested in the original thread to follow up with a "git rebase -i" to fix the commit message, because "git-rebase--interactive --help" did not show a -s option. However, I found out that it does support it, so it is probably better to use "git rebase -i -s theirs --onto ..." directly.

Show 5 quoted lines
> Yes, you may want an easy way to say "the result should have the same tree
> as E'" while replaying of E' on top of E _when_ you have to resolve the
> conflict.  But that is a separate issue ("git checkout $other_head --
> $conflicted_paths", or somesuch).  Using this in rebase is a horrible
> example inviting misuse and a broken history, I think.

You mean that I should a) drop the example from git-rebase.1, b) reword it to clarify it, c) drop the patch completely?

Paolo
Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 10 in “provide a new "theirs" strategy, useful for rebase --onto”
  1. provide a new "theirs" strategy, useful for rebase --ontoPaolo Bonzini, Jun 6, 2008
  2. Peter KarlssonJun 6, 2008
  3. Paolo BonziniJun 6, 2008
  4. Miklos VajnaJun 6, 2008
  5. Junio C HamanoJun 6, 2008
  6. Paolo BonziniJun 8, 2008
  7. Junio C HamanoJun 8, 2008
  8. Paolo BonziniJun 8, 2008
  9. Junio C HamanoJun 8, 2008
  10. Paolo BonziniJun 8, 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.