From: "René Scharfe" <rene.scharfe@lsrfire.ath.cx>
To: htl10@users.sourceforge.net
Cc: Jeff King <peff@peff.net>, git@vger.kernel.org
Subject: Re: git-archive's wrong documentation: really write pax rather than tar
Date: Thu, 04 Aug 2011 19:54:19 +0200 [thread overview]
Message-ID: <4E3ADCCB.6080206@lsrfire.ath.cx> (raw)
In-Reply-To: <1312478843.69439.YahooMailClassic@web29510.mail.ird.yahoo.com>
Am 04.08.2011 19:27, schrieb Hin-Tak Leung:
> --- On Thu, 4/8/11, Jeff King <peff@peff.net> wrote:
>> Out of curiosity, what is the library? Putting pax headers into
>> ustar format has been standardized in POSIX since 2001.
>
> The R people wrote their own in the R language (and the person who
> responded to my post in that R-devel thread was possibly the one who
> wrote that part, I believe) - The main reason is probably
> cross-platform-ness and independence from other programming languages
> - they are gradually moving away from invoking system() (because they
> need to run on windows and they used to require many cygwin/mingw
> tools to build add-on packages).
>
> The R code which does that, scan for certain patterns after seek()
> into the gunzip'ed stream after 512(?) bytes. It is in a file
> R/src/library/utils/R/tar.R under the source repository.
Ah, here it is:
https://svn.r-project.org/R/trunk/src/library/utils/R/tar.R
It's the ctype handling in function untar2 that rejects unknown entry types.
For reference, the documentation of the pax format including a
suggestion to treat unknown types like regular files can be found here
(search for "typename"):
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/pax.html
> I think I tried the tree example and the R code also didn't like it
> much... may be I'll give it another try.
Did you try adding a ":" to the tree argument, e.g. this:
$ git archive HEAD:
instead of this?
$ git archive HEAD
René
next prev parent reply other threads:[~2011-08-04 17:54 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-04 17:27 (unknown) Hin-Tak Leung
2011-08-04 17:54 ` René Scharfe [this message]
2011-08-04 18:33 ` git-archive's wrong documentation: really write pax rather than tar Hin-Tak Leung
2011-08-06 18:57 ` René Scharfe
2011-08-10 3:08 ` Hin-Tak Leung
2011-08-10 19:55 ` René Scharfe
-- strict thread matches above, loose matches on Subject: below --
2011-08-03 22:17 Hin-Tak Leung
2011-08-04 1:41 ` Jeff King
2011-08-04 1:56 ` Junio C Hamano
2011-08-04 2:00 ` Jeff King
2011-08-04 2:25 ` Junio C Hamano
2011-08-04 2:29 ` Jeff King
2011-08-04 17:39 ` René Scharfe
2011-08-04 2:13 ` Jeff King
2011-08-04 22:51 ` Junio C Hamano
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=4E3ADCCB.6080206@lsrfire.ath.cx \
--to=rene.scharfe@lsrfire.ath.cx \
--cc=git@vger.kernel.org \
--cc=htl10@users.sourceforge.net \
--cc=peff@peff.net \
/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;
as well as URLs for NNTP newsgroup(s).