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

Re: git-archive not working correctly ?

From
Frank Lichtenheld <frank@lichtenheld.de>
Date
Sep 17, 2007, 00:31 UTC
Message-ID
<20070917003115.GV22865@planck.djpig.de>
In-Reply-To
<1189983026.22727.61.camel@niki2.guldbrand.net>
On Mon, Sep 17, 2007 at 12:50:26AM +0200, Niki Guldbrand wrote:
Show 14 quoted lines
> I have been playing with git-archive for and hour or so, but can't get
> it to pass "extra" options to tar as it's documented that it should, or
> am i reading the docs wrong ?
> 
> git-archive --format=<fmt> [--list] [--prefix=<prefix>/] [<extra>]
> [--remote=<repo>] <tree-ish> [path…]
> 
> <extra>
>         This can be any options that the archiver backend understand.
>         See next section.
>         
> I want to git tar the "--exclude=option", but i can't get it through.
> Is this option only valid for the zip format with the options "-0" and
> "-9" ?
Yes. The tar backend currently doesn't support any extra options.
Gruesse,
-- 
Frank Lichtenheld <frank@lichtenheld.de>
www: http://www.djpig.de/
Previous: Niki GuldbrandNext: Junio C Hamano
Message 2 of 3 in “git-archive not working correctly ?”
  1. Niki GuldbrandSep 16, 2007
  2. Frank LichtenheldSep 17, 2007
  3. Junio C HamanoSep 17, 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.