From: "Ciprian Dorin Craciun" <ciprian.craciun@gmail.com>
To: git@vger.kernel.org
Subject: Exporting a tree from a repository
Date: Sat, 14 Jul 2007 23:25:52 +0300 [thread overview]
Message-ID: <8e04b5820707141325o400e170bu9eb80b304cae506b@mail.gmail.com> (raw)
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 reply other threads:[~2007-07-14 20:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-14 20:25 Ciprian Dorin Craciun [this message]
2007-07-14 21:46 ` Exporting a tree from a repository Julian Phillips
2007-07-15 6:12 ` Junio C Hamano
2007-07-15 7:12 ` Ciprian Dorin Craciun
2007-07-15 9:15 ` Alex Riesen
2007-07-15 7:17 ` martin f krafft
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=8e04b5820707141325o400e170bu9eb80b304cae506b@mail.gmail.com \
--to=ciprian.craciun@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox