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

Re: How do I get the contents of a directory in fast-import

From
SMStefan Monnier <monnier@iro.umontreal.ca>
Date
Jan 9, 2016, 23:56 UTC
Message-ID
<jwvegdqb946.fsf-monnier+gmane.comp.version-control.git@gnu.org>
In-Reply-To
<jwvio3d7152.fsf-monnier+gmane.comp.version-control.git.user@gnu.org>
Any help would be greatly welcome, including "sorry, can't do that".
        Stefan
>>>>> "Stefan" == Stefan Monnier <monnier@iro.umontreal.ca> writes:
> I have a program which tries to collect info from lots of branches and
> generate some table from that data into another branch.
> For performance reasons, I'd like to do that from fast-import, and as
> long as I know the name of all the files I need to consult, everything
> is fine since I can use the "ls" and "cat-blob" commands of fast-import
> to get efficiently the data I need.
> But I also need to look at some files whose names I don't know beforehand
> (i.e. all the files in some directories).  If I do "cat-blob" on those
> directories I get some binary "thing" which I don't understand.
> So how do I get a directory listing from fast-inmport, i.e.
> like I can get with "git cat-file -p", but without having to fork
> a separate git process?
>         Stefan
Previous: Stefan MonnierNext: Jeff King
Message 2 of 4 in “How do I get the contents of a directory in fast-import”
  1. Stefan MonnierJan 1, 2016
  2. Stefan MonnierJan 9, 2016
  3. Jeff KingJan 15, 2016
  4. Stefan MonnierJan 16, 2016

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.