git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Yet another git archive all
@ 2010-11-06 19:03 fREW Schmidt
  2010-11-07 12:00 ` Jakub Narebski
  0 siblings, 1 reply; 2+ messages in thread
From: fREW Schmidt @ 2010-11-06 19:03 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-07 12:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-06 19:03 Yet another git archive all fREW Schmidt
2010-11-07 12:00 ` Jakub Narebski

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 NNTP newsgroup(s).