git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: fREW Schmidt <frioux@gmail.com>
To: git@vger.kernel.org
Subject: Yet another git archive all
Date: Sat, 6 Nov 2010 14:03:37 -0500	[thread overview]
Message-ID: <AANLkTim07Ku=ETtPEutZ_gWagXdg8kVTUMMDpZcs1kMm@mail.gmail.com> (raw)

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

             reply	other threads:[~2010-11-06 19:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-06 19:03 fREW Schmidt [this message]
2010-11-07 12:00 ` Yet another git archive all Jakub Narebski

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTim07Ku=ETtPEutZ_gWagXdg8kVTUMMDpZcs1kMm@mail.gmail.com' \
    --to=frioux@gmail.com \
    --cc=git@vger.kernel.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).