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

Exporting a tree from a repository

From
Ciprian Dorin Craciun <ciprian.craciun@gmail.com>
Date
Jul 14, 2007, 20:25 UTC
Message-ID
<8e04b5820707141325o400e170bu9eb80b304cae506b@mail.gmail.com>
    Hello all!
    I am a new GIT user, I like it, so I started playing with it for
different projects I work on.
    Currently I am playing with "Linux from Scratch", and I have
written some scripts to automatize the build process -- kind of
install scripts...
    For this I use GIT to store all the source packages -- each inside
it's own branch :).
    My question is the following: How can I export an entire tree
without using a working directory, or cloning the repository. (Because
from what I have seen so far there is no way to use the same
repository with many working directories...)
    Now I know that I can use "git archive | tar -x"... I am looking
for the same functionality but without the intermediary file... Maybe
something like "git archive --format=tree <branch>"...
    Also there is also a possible drawback by using git archive with
tar format, that is if I decide to make the repository available to
the public then it would be nice to have this export functionality...
I think this could be also used for kernel sources as an alternative
to downloading the tar.bz2 file or copying the entire tree...
    Thank you all for your feedback!
    Ciprian Craciun.
Next: Julian Phillips
Message 1 of 6 in “Exporting a tree from a repository”
  1. Ciprian Dorin CraciunJul 14, 2007
  2. Julian PhillipsJul 14, 2007
  3. Junio C HamanoJul 15, 2007
  4. Ciprian Dorin CraciunJul 15, 2007
  5. Alex RiesenJul 15, 2007
  6. martin f krafftJul 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.