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

Re: git rebase: unexpected conflict

From
MTMichael S. Tsirkin <mst@mellanox.co.il>
Date
Feb 7, 2007, 20:31 UTC
Message-ID
<20070207203133.GG12140@mellanox.co.il>
In-Reply-To
<7vired7mkw.fsf@assigned-by-dhcp.cox.net>
> Since git-rebase currently ignores merge commits
Ugh. This is the bit I did not know about.

So the following script is kind of equivalent to rebase - it applies commits in range $1..$2 that touch files in list on top of current tree:

from=$1 shift to=$1 shift git-show --pretty=email `git-rev-list --no-merges $from..$to -- $* | tac` > box ../git-am box

And here I was hoping rebase will be smarter and help me out.
OK.
Questions about the above line now:
1. What is annoying in the above is that
git-show can not limit its output to just the part of patch
that affects the list of files I give, the way git-diff can.
Would such an extension be a good idea?
2. It's unfortunate that I need a temp file here.
Can git-am get stdin somehow?
-- 
MST
Previous: Junio C HamanoNext: Junio C Hamano
Message 7 of 16 in “git rebase: unexpected conflict”
  1. Michael S. TsirkinFeb 4, 2007
  2. Jakub NarebskiFeb 4, 2007
  3. Michael S. TsirkinFeb 4, 2007
  4. Junio C HamanoFeb 7, 2007
  5. Michael S. TsirkinFeb 7, 2007
  6. Junio C HamanoFeb 7, 2007
  7. Michael S. TsirkinFeb 7, 2007
  8. Junio C HamanoFeb 7, 2007
  9. Michael S. TsirkinFeb 7, 2007
  10. Junio C HamanoFeb 7, 2007
  11. Michael S. TsirkinFeb 8, 2007
  12. Junio C HamanoFeb 8, 2007
  13. Michael S. TsirkinFeb 8, 2007
  14. Michael S. TsirkinFeb 9, 2007
  15. Linus TorvaldsFeb 7, 2007
  16. Linus TorvaldsFeb 7, 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.