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