Re: Prepend the history of one git tree to another
- From
- Thomas Glanzmann <sithglan@stud.uni-erlangen.de>
- Date
- Feb 20, 2006, 10:43 UTC
- Message-ID
- <20060220104345.GG26454@cip.informatik.uni-erlangen.de>
- In-Reply-To
- <43F99684.5070403@op5.se>
Hello Andreas,
> Something like this might do the trick, depending on how linear your > ancestry graph is:
Show 5 quoted lines
> $ cd blastwave > $ first=$(git rev-list HEAD | tail -n 1) > $ git format-patch -k --stdout $first..HEAD > ../blw.mbox > $ cd ../blastwave.old > $ git am -k -3 ../blw.mbox
My graph is very linear. However. I have binaries checked into my tree. I am not sure if format-patch can handle this.
Thomas