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

Re: sending changesets from the middle of a git tree

From
Junio C Hamano <junkio@cox.net>
Date
Aug 17, 2005, 00:55 UTC
Message-ID
<7v1x4t5qlk.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20050817001308.ED487353CFD@atlas.denx.de>
Wolfgang Denk <wd@denx.de> writes:
Show 6 quoted lines
> 	external diff died, stopping at common/cmd_nand.c.
> 	Some commits could not be rebased, check by hand:
> 	67a002cbe2b2850d76d797e679bc290a76666df6
>
> OK, I can edit the file to resolve the conflicts. But what  do  I  do
> then to continue?

Your rebase failed while processing 67a002... and fortunately (well, if you are really fortunate you would not have seem it) "some commits could not be" message says that was the only one left. At that point, everything up to that commit should be migrated on top of your head. Run gitk or git show-branches to see where the "master" head is. It should be pointing at the last successful commit the rebase process has made. I guess in your example you had one commit between master and testing-NAND, in which case the master head does not have moved?

Anyway, you manually resolve conflicts and make an commit from there, which would migrate the failed 67a002... commit on top of your master branch. If "some commits could not be rebased" message says more than one commit, you need to deal with the rest of them by hand; sorry there is no automated way currently.

You have to repeat for each such commit:
 (1) Run "git-diff-tree -p <commit-id> | git-apply --index" (or
     what is in git-rebase-script which uses git-apply-patch-script);
 (2) Resolve conflict if there is one;
 (3) Run "git commit -C <commit-id>".
Previous: Wolfgang DenkNext: Catalin Marinas
Message 11 of 12 in “sending changesets from the middle of a git tree”
  1. Steve FrenchAug 14, 2005
  2. Ryan AndersonAug 14, 2005
  3. Ryan AndersonAug 15, 2005
  4. Linus TorvaldsAug 14, 2005
  5. Linus TorvaldsAug 14, 2005
  6. Junio C HamanoAug 14, 2005
  7. Petr BaudisAug 14, 2005
  8. Junio C HamanoAug 15, 2005
  9. Catalin MarinasAug 15, 2005
  10. Wolfgang DenkAug 17, 2005
  11. Junio C HamanoAug 17, 2005
  12. Catalin MarinasAug 15, 2005

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.