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

Yet another git archive all

From
fREW Schmidt <frioux@gmail.com>
Date
Nov 6, 2010, 19:03 UTC
Message-ID
<AANLkTim07Ku=ETtPEutZ_gWagXdg8kVTUMMDpZcs1kMm@mail.gmail.com>

I was trying to use this: https://github.com/meitar/git-archive-all.sh/blob/master/git-archive-all.sh

but I was having issues and am not really a bash programmer, so I wrote a new, much more minimal archive-all.

I haven't added *any* option support, it only exports as zip, and it does foo.zip as the file, but those things should be pretty easy to fix for someone who cares. Anyway, here it is!

git ls-files --cached --full-name --no-empty-directory -z | xargs -0 zip foo.zip > /dev/null git submodule --quiet foreach --recursive 'perl -e "print join qq(\0), map qq($path/\$_), split /\0/, qx(git ls-files -z --cached --full-name --no-empty-directory); print qq(\0)"' | xargs -0 zip foo.zip > /dev/null

-- fREW Schmidt http://blog.afoolishmanifesto.com

Next: Jakub Narebski
Message 1 of 2 in “Yet another git archive all”
  1. fREW SchmidtNov 6, 2010
  2. Jakub NarebskiNov 7, 2010

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.