Yet another git archive all

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]