git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Using grafts file to rewrite history

From
Jeff King <peff@peff.net>
Date
Feb 25, 2009, 06:10 UTC
Message-ID
<20090225061018.GA6211@coredump.intra.peff.net>
In-Reply-To
<Pine.LNX.4.64.0902250626300.9572@ds9.cixit.se>
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
Previous: Peter Krefting
Message 2 of 2 in “Using grafts file to rewrite history”
  1. Peter KreftingFeb 25, 2009
  2. Jeff KingFeb 25, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.