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

Re: git-archive's wrong documentation: really write pax rather than tar

From
Jeff King <peff@peff.net>
Date
Aug 4, 2011, 02:00 UTC
Message-ID
<20110804020054.GA1947@sigill.intra.peff.net>
In-Reply-To
<7v62me6ism.fsf@alter.siamese.dyndns.org>
On Wed, Aug 03, 2011 at 06:56:41PM -0700, Junio C Hamano wrote:
Show 9 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > It might be a bit more obvious to find if we actually had a
> > --no-pax-header option, though.
> 
> Yeah, we would need to make sure that --no-pack-header causes a barf
> for other backends, though. "struct archiver_args" right now seems to have
> compression_level but I think it should just have "const char **" that is
> interpreted by backends.

Actually, it is relevant for zip, too. The option should really be called "--no-commit-id" or something similar. I don't think it's as big a deal with zip (because there is no compatibility issue), but you may want to omit the header for other reasons (e.g., because you know it doesn't point to a commit that is public).

-Peff
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 9 in “git-archive's wrong documentation: really write pax rather than tar”
  1. Hin-Tak LeungAug 3, 2011
  2. Jeff KingAug 4, 2011
  3. Junio C HamanoAug 4, 2011
  4. Jeff KingAug 4, 2011
  5. Junio C HamanoAug 4, 2011
  6. Jeff KingAug 4, 2011
  7. René ScharfeAug 4, 2011
  8. Jeff KingAug 4, 2011
  9. Junio C HamanoAug 4, 2011

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.