From: Stefan Monnier <monnier@iro.umontreal.ca>
To: git@vger.kernel.org
Subject: How do I get the contents of a directory in fast-import
Date: Fri, 01 Jan 2016 10:54:00 -0500 [thread overview]
Message-ID: <jwvio3d7152.fsf-monnier+gmane.comp.version-control.git.user@gnu.org> (raw)
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
next reply other threads:[~2016-01-01 15:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-01 15:54 Stefan Monnier [this message]
2016-01-09 23:56 ` How do I get the contents of a directory in fast-import Stefan Monnier
2016-01-15 22:39 ` Jeff King
2016-01-16 1:59 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvio3d7152.fsf-monnier+gmane.comp.version-control.git.user@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.