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

Re: [PATCH] contrib/fast-import: add perl version of simple example

From
Jeff King <peff@peff.net>
Date
Sep 18, 2007, 10:30 UTC
Message-ID
<20070918103051.GA22239@coredump.intra.peff.net>
In-Reply-To
<46EFA84C.3080906@op5.se>
On Tue, Sep 18, 2007 at 12:28:28PM +0200, Andreas Ericsson wrote:
Show 9 quoted lines
>> Yes, please!  Maybe somebody will then grab the low-hanging fruit of 
>> writing a "git-fast-export", which can be used to dump a complete 
>> repository in text format?
>
> I thought that was already taken care of since format-patch handles
> --root flag properly?
>
> Otherwise, "git repack -a --window=0 --depth=0" should provide an
> easily parseable dump of an entire repo.

I think he means a dump that you can meaningfully edit with sed or a text editor. And even nicer, one that could be fed back into git-fast-import. So you could do something like:

git-fast-export A..B >dump vi dump git-fast-import <dump

to rewrite history in a very flexible way.
-Peff
Previous: Andreas EricssonNext: Johannes Schindelin
Message 5 of 11 in “contrib/fast-import: add perl version of simple example”
  1. contrib/fast-import: add perl version of simple exampleJeff King, Sep 18, 2007
  2. Jeff KingSep 18, 2007
  3. Johannes SchindelinSep 18, 2007
  4. Andreas EricssonSep 18, 2007
  5. Jeff KingSep 18, 2007
  6. Johannes SchindelinSep 18, 2007
  7. Andreas EricssonSep 18, 2007
  8. Sam VilainSep 18, 2007
  9. Johannes SchindelinSep 18, 2007
  10. Sam VilainSep 18, 2007
  11. Johannes SchindelinSep 18, 2007

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.