From: Linus Torvalds Date: Fri, 22 Jul 2005 20:43:17 GMT Subject: Re: [PATCH 0/2] apply.c: a fix and an enhancement Message-ID: In-Reply-To: <42E1571B.8070108@gmail.com> 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