Re: [PATCH 0/2] apply.c: a fix and an enhancement
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Jul 22, 2005, 20:43 UTC
- Message-ID
- <Pine.LNX.4.58.0507221340450.6074@g5.osdl.org>
- In-Reply-To
- <42E1571B.8070108@gmail.com>
On Fri, 22 Jul 2005, A Large Angry SCM wrote:
Show 7 quoted lines
> > 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