From: Dmitry Potapov Date: Wed, 02 Jul 2008 17:58:20 GMT Subject: Re: RFC: grafts generalised Message-ID: <37fcd2780807021058r5ed820cfmdc98f98f36d5c8ae@mail.gmail.com> In-Reply-To: <37fcd2780807021019t76008bbfq265f8bf15f59c178@mail.gmail.com> On Wed, Jul 2, 2008 at 9:19 PM, Dmitry Potapov wrote: > > However, if you want more than just ability to edit commits in a text > file but also inspect changes using normal git commands and gitk (as it > is possible with grafts), it will require changes to the git core, which, > perhaps, not difficult to implement using pretend_sha1_file(), but I am > not sure that everyone will welcome that... On second thought, it may be not necessary. You can extract an old commit object, edit it, put it into Git with a new SHA1, and then use the graft file to replace all references from an old to a new one. And you will be able to see changes immediately in gitk. Dmitry