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

Re: git archive -o something.tar.zst but file info just says "POSIX tar archive"

From
Bagas Sanjaya <bagasdotme@gmail.com>
Date
Oct 11, 2021, 06:43 UTC
Message-ID
<38ba34f9-47e5-8059-7c16-6cf159c849ad@gmail.com>
In-Reply-To
<20211010114025.GA571180@szeder.dev>
On 10/10/21 18.40, SZEDER Gábor wrote:
Show 10 quoted lines
>    $ git archive -h |grep -e ' -l'
>        -l, --list            list supported archive formats
>    $ git archive -l
>    tar
>    tgz
>    tar.gz
>    zip
> 
> Does it list zstd among the supported formats on your machine?
> 
Oh, I forgot to add `tar.tar.zst` config option.
Now `git archive -l` lists:

tar tgz tar.gz tar.zst tar.bz2 tar.xz zip

and the corresponding .gitconfig are:

tar.tar.zst.command=zstd -c tar.tar.bz2.command=bzip2 -c tar.tar.xz.command=xz -c

Thanks.
-- 
An old man doll... just what I always wanted! - Clara
Previous: SZEDER Gábor
Message 3 of 3 in “git archive -o something.tar.zst but file info just says "POSIX tar archive"”
  1. Bagas SanjayaOct 10, 2021
  2. SZEDER GáborOct 10, 2021
  3. Bagas SanjayaOct 11, 2021

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.