Re: [PATCH] transplant: move a series of commits to a different parent
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Jun 23, 2007, 21:04 UTC
- Message-ID
- <81b0412b0706231404hc8b4bc4xd5bc51c733d8ea69@mail.gmail.com>
- In-Reply-To
- <11826268772950-git-send-email-prohaska@zib.de>
On 6/23/07, Steffen Prohaska <prohaska@zib.de> wrote:
Show 16 quoted lines
> git-transplant.sh <onto> <from> <to> > > transplant starts with the contents of <onto> and puts on top of > it the contents of files if they are touched by the series of > commits <from>..<to>. If a commit touches a file the content of > this file is taken as it is in the commit. No merging is > performed. Original authors, commiters, and commit messages are > preserved. > > Warning: this is just a quick hack to solve _my_ problem. > - No error checking is performed. > - Removal of files is not handled. > - Whitespace in filename is not handled. > - The index is left in dirty state. > - No branch is created for the result. > - The script is not integrated with git's shell utilities.
# detached head git checkout $(git rev-parse onto) && git format-patch --stdout --full-index from..to|git am -3