Re: [PATCH] Extend cat-file to take multiple arguments or read input from stdin.
- From
Han-Wen Nienhuys <hanwen@xs4all.nl>
- Date
- Nov 15, 2007, 04:41 UTC
- Message-ID
- <fhgitt$b8d$1@ger.gmane.org>
- In-Reply-To
- <Pine.LNX.4.64.0711150432420.4362@racer.site>
Johannes Schindelin escreveu:
Show 11 quoted lines
> Hi, > > On Thu, 15 Nov 2007, Han-Wen Nienhuys wrote: > >> With this functionality, the entire object database can be dumped with a >> limited number of processes: two cat-file processes for discovering size >> and type, and one cat-file process per type. > > IMHO a better idea would be a counterpart to fast-import, probably called > "fast-export". You'd need only one process then, and it would not only be > faster, but would be usable by even more people, I guess.
I know, and that's what I was thinking. However, I was hoping someone else would pick up the hint :-)
I suppose fast-export would just be cat-file with a different name and slightly saner interface. How about
type <sha1> <newline> size <sha1> <newline> dump <type> <sha1> <newline>
?
-- Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen