{"thread":{"id":"18008","subject":"Using grafts file to rewrite history","startedAt":"2009-02-25T05:29:46Z","lastAt":"2009-02-25T06:10:19Z","messageCount":2,"participants":["Peter Krefting","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"106134","messageId":"Pine.LNX.4.64.0902250626300.9572@ds9.cixit.se","threadId":"18008","inReplyTo":null,"subject":"Using grafts file to rewrite history","fromName":"Peter Krefting","fromEmail":"peter@softwolves.pp.se","sentAt":"2009-02-25T05:29:46Z","receivedAt":"2009-02-25T05:29:46Z","isPatch":false,"sender":{"key":"peter@softwolves.pp.se","avatar":"https://avatars.githubusercontent.com/u/990764?v=4"},"body":"Hi!\n\nMy googling powers have yet eluded to find me an answer to this:\n\nGiven an (unpublished) Git repository and a \"grafts\" file that slightly\nre-orders commits, how do I reprocess this repository (using\ngit-filter-branch, probably) to have a true history according to the\n\"grafts\" file?\n\nI am trying to use git-import-tars to import non-linear development\nhistory, and then use a grafts file to find the \"proper\" history. I\nwould like to re-order the history before i publish it in a public Git\nrepository.\n\n-- \n\\\\// Peter - http://www.softwolves.pp.se/\n"},{"id":"106136","messageId":"20090225061018.GA6211@coredump.intra.peff.net","threadId":"18008","inReplyTo":"Pine.LNX.4.64.0902250626300.9572@ds9.cixit.se","subject":"Re: Using grafts file to rewrite history","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2009-02-25T06:10:19Z","receivedAt":"2009-02-25T06:10:19Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Feb 25, 2009 at 06:29:46AM +0100, Peter Krefting wrote:\n\n> Given an (unpublished) Git repository and a \"grafts\" file that slightly\n> re-orders commits, how do I reprocess this repository (using\n> git-filter-branch, probably) to have a true history according to the\n> \"grafts\" file?\n\nRunning filter-branch at all will glue the grafts together. It is even\none of the examples given in the git-filter-branch(1) manpage.\n\n-Peff\n"}]}