From: merlyn@stonehenge.com (Randal L. Schwartz)
To: jateeq <jawad_atiq@hotmail.com>
Cc: git@vger.kernel.org
Subject: Re: Creating a tarball out of a directory in a bare git repository
Date: Mon, 01 Mar 2010 15:00:28 -0800 [thread overview]
Message-ID: <86y6ibhckz.fsf@blue.stonehenge.com> (raw)
In-Reply-To: <27750115.post@talk.nabble.com> (jawad_atiq@hotmail.com's message of "Mon, 1 Mar 2010 14:47:45 -0800 (PST)")
>>>>> "jateeq" == jateeq <jawad_atiq@hotmail.com> writes:
jateeq> - list all the files/folders in the directory (i have the sha1 hash of the
jateeq> directory)
jateeq> - foreach file in the directory, get the file contents (recurse if there are
jateeq> further subdirectories). Probably store the result in an array.
jateeq> - create a file somewhere on the filesystem out of each file output above.
jateeq> Store it under the directory name.
jateeq> - create a tarball out of the 'working' directory as usual.
Sounds like you're reinventing "git archive". :)
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
prev parent reply other threads:[~2010-03-01 23:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-01 22:47 Creating a tarball out of a directory in a bare git repository jateeq
2010-03-01 23:00 ` Julian Phillips
2010-03-01 23:00 ` Randal L. Schwartz [this message]
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=86y6ibhckz.fsf@blue.stonehenge.com \
--to=merlyn@stonehenge.com \
--cc=git@vger.kernel.org \
--cc=jawad_atiq@hotmail.com \
/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