git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Grafting mis-aligned trees.
@ 2008-11-17 22:45 Boyd Stephen Smith Jr.
  2008-11-18  9:24 ` Michael J Gruber
  0 siblings, 1 reply; 7+ messages in thread
From: Boyd Stephen Smith Jr. @ 2008-11-17 22:45 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 1895 bytes --]

I haven't gotten a response from my subscription email, so please CC me on any replies.

So, I've been managaing the source I had from a client project in git and 
have a non-linear history.  Currently, two tips (production and testing) 
but there are many feature branches that were git-merge'd in, not rebased.

Now, I've gotten the full tree.  Turns out all the source code I was 
working on was in a subdirectory "project/web".  I'd like to "graft" the 
*changes* I made onto the full tree.

I figured this might be a job for git-filter-branch.  Certainly, that did 
the job of moving all my changes into the subdirectory.  But, now I want to 
do something that's a combination or git-rebase and git-filter-branch.  I 
want to replay the *patches/deltas* (like rebase) on top of the full tree I 
have, but *maintain the non-liear history* (like filter-branch).

Can anyone think of a recipe for me?

Trees look something like this right now.

<some history> -> FT

TI -> <non-linear history> -> A -> <non-linear history> -> C
   \                            \                           \
    -> PI ------------------------> B ------------------------> D

I'd like to have it look something like:

<some history> -> FT -> <non-linear history> -> A' -> <non-linear history> -> C'
                    \                            \                           \
                     -> PI' ----------------------> B' -----------------------> D'

A', B', C', and D' are different commits, but the diff (and history) between 
FT and A' is the same as the diff (and history) between TI and A.

Again, please CC me on any replies.
-- 
Boyd Stephen Smith Jr.                     ,= ,-_-. =. 
bss03@volumehost.net                      ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' 
http://iguanasuicide.org/                      \_/     

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-12-02 18:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-17 22:45 Grafting mis-aligned trees Boyd Stephen Smith Jr.
2008-11-18  9:24 ` Michael J Gruber
2008-11-28 23:01   ` Boyd Stephen Smith Jr.
2008-12-02 16:20     ` Michael J Gruber
2008-12-02 17:19       ` Boyd Stephen Smith Jr.
2008-12-02 17:38         ` Michael J Gruber
2008-12-02 18:28           ` Boyd Stephen Smith Jr.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).