From: Michael J Gruber <git@drmicha.warpmail.net>
To: "Boyd Stephen Smith Jr." <bss03@volumehost.net>
Cc: git@vger.kernel.org
Subject: Re: Grafting mis-aligned trees.
Date: Tue, 02 Dec 2008 18:38:43 +0100 [thread overview]
Message-ID: <493572A3.4070205@drmicha.warpmail.net> (raw)
In-Reply-To: <200812021119.51857.bss03@volumehost.net>
Boyd Stephen Smith Jr. venit, vidit, dixit 02.12.2008 18:19:
...
> It does feel a bit "hacky", I was hoping git would have better support
> this, through the subtree merge or something else. It seems like
> something that might happen to others, perhaps as a side-effect of a
> failed attempt at using submodules.
Well, except for 'tar' my solution uses only git commands ;)
> I can't help thinking that rebase -ip might have helped. I wasn't aware
> of -p when I was initially working on this problem. (It doesn't help that
> I generally use Debian stable, and git 1.4 did not have -p.)
rebase rebases one branch at a time, but you need to rebase/rewrite
several, and the merge info between depends on rewritten sha1s.
...
> I probably don't need the -f. If there are files that should be ignored
> (and thus shouldn't be in the repo), I'll filter-branch to cut them out of
> the history at some point.
'-f' is about not having to clean out refs/original from a previous
filter-branch run.
> What *exactly* is the subtree merge. The documentation I've read sounds
> like this case, sort of, but it's rather unclear to me.
I think 'subtree' does what you want, but 'merge' doesn't! 'subtree'
saves you the rewriting (putting TI into project/web), but you want a
one-time conversion anyway. 'subtree' allows you to repeatedly merge
branches with a different root. What it does is it looks for subdir,
'rewrites' the incoming tree automatically and merges the result.
But you don't want a merge, do you? Or else your whole TI history would
be tacked onto FT's head "to the left": a new (subtree) merge commit
would have FT's and TI's head as parents. This is one way of storing TI
history in the full repo, but not the one you said you wanted.
Michael
next prev parent reply other threads:[~2008-12-02 17:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2008-12-02 18:28 ` Boyd Stephen Smith Jr.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=493572A3.4070205@drmicha.warpmail.net \
--to=git@drmicha.warpmail.net \
--cc=bss03@volumehost.net \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.