threads / discuss / 18008

Using grafts file to rewrite history

Subject: Using grafts file to rewrite history

## tl;dr

2 messages between Feb 25, 2009 and Feb 25, 2009.

replies: 1people: 2as markdown or json

Peter Krefting· Feb 25, 2009, 05:29 UTC · lore
Hi!
My googling powers have yet eluded to find me an answer to this:

Given an (unpublished) Git repository and a "grafts" file that slightly re-orders commits, how do I reprocess this repository (using git-filter-branch, probably) to have a true history according to the "grafts" file?

I am trying to use git-import-tars to import non-linear development history, and then use a grafts file to find the "proper" history. I would like to re-order the history before i publish it in a public Git repository.

-- 
\\// Peter - http://www.softwolves.pp.se/
Jeff King· Feb 25, 2009, 06:10 UTC · re: Peter Krefting · lore

Re: Using grafts file to rewrite history

On Wed, Feb 25, 2009 at 06:29:46AM +0100, Peter Krefting wrote:
> Given an (unpublished) Git repository and a "grafts" file that slightly
> re-orders commits, how do I reprocess this repository (using
> git-filter-branch, probably) to have a true history according to the
> "grafts" file?

Running filter-branch at all will glue the grafts together. It is even one of the examples given in the git-filter-branch(1) manpage.

-Peff

← back to recent threads