On Fri, 22 Jul 2005, A Large Angry SCM wrote:
>
> To do it without the history rewrite, create an alternate_history
> directory under .git with it's own objects tree. And populate that
> object tree with "alternative" content for the objects in the normal
> trees. Then teach the things the lookup/read objects to look there first
> and to _not_ care about invalid SHAs. Of course, if you do this, you
> will never be able to trust your repository.
You can do it much more nicely if you want.
Just teach "parse_commit()" to look at a ".git/fake_parents" file, and
insert fake extra parents for commits that way - you can graft any tree on
top of any other tree that way, and it's probably a nice idea for testing
things out.
Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html