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

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
Previous: Johannes SchindelinNext: Junio C Hamano
Message 3 of 5 in “Extend cat-file to take multiple arguments or read input from stdin.”
  1. Extend cat-file to take multiple arguments or read input from stdin.Han-Wen Nienhuys, Nov 15, 2007
  2. Johannes SchindelinNov 15, 2007
  3. Han-Wen NienhuysNov 15, 2007
  4. Junio C HamanoNov 15, 2007
  5. Han-Wen NienhuysNov 15, 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.