{"thread":{"id":"25655","subject":"Yet another git archive all","startedAt":"2010-11-06T19:03:37Z","lastAt":"2010-11-07T12:00:11Z","messageCount":2,"participants":["fREW Schmidt","Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"155301","messageId":"AANLkTim07Ku=ETtPEutZ_gWagXdg8kVTUMMDpZcs1kMm@mail.gmail.com","threadId":"25655","inReplyTo":null,"subject":"Yet another git archive all","fromName":"fREW Schmidt","fromEmail":"frioux@gmail.com","sentAt":"2010-11-06T19:03:37Z","receivedAt":"2010-11-06T19:03:37Z","isPatch":false,"sender":{"key":"frioux@gmail.com","avatar":"https://gravatar.com/avatar/639ef3cc221c7f2c225568697bc9d42be4d4e3bada6b4a3b9c32685548f3c105?d=mp&s=160"},"body":"I was trying to use this:\nhttps://github.com/meitar/git-archive-all.sh/blob/master/git-archive-all.sh\n\nbut I was having issues and am not really a bash programmer, so I\nwrote a new, much more minimal archive-all.\n\nI haven't added *any* option support, it only exports as zip, and it\ndoes foo.zip as the file, but those things should\nbe pretty easy to fix for someone who cares.  Anyway, here it is!\n\ngit ls-files --cached --full-name --no-empty-directory -z | xargs -0\nzip foo.zip > /dev/null\ngit submodule --quiet foreach --recursive 'perl -e \"print join qq(\\0),\nmap qq($path/\\$_), split /\\0/, qx(git ls-files -z --cached --full-name\n--no-empty-directory); print qq(\\0)\"' | xargs -0 zip foo.zip >\n/dev/null\n\n--\nfREW Schmidt\nhttp://blog.afoolishmanifesto.com\n"},{"id":"155322","messageId":"m3r5exfiop.fsf@localhost.localdomain","threadId":"25655","inReplyTo":"AANLkTim07Ku=ETtPEutZ_gWagXdg8kVTUMMDpZcs1kMm@mail.gmail.com","subject":"Re: Yet another git archive all","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2010-11-07T12:00:11Z","receivedAt":"2010-11-07T12:00:11Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"fREW Schmidt <frioux@gmail.com> writes:\n\n> I was trying to use this:\n> https://github.com/meitar/git-archive-all.sh/blob/master/git-archive-all.sh\n> \n> but I was having issues and am not really a bash programmer, so I\n> wrote a new, much more minimal archive-all.\n> \n> I haven't added *any* option support, it only exports as zip, and it\n> does foo.zip as the file, but those things should\n> be pretty easy to fix for someone who cares.  Anyway, here it is!\n> \n> git ls-files --cached --full-name --no-empty-directory -z | xargs -0\n> zip foo.zip > /dev/null\n> git submodule --quiet foreach --recursive 'perl -e \"print join qq(\\0),\n> map qq($path/\\$_), split /\\0/, qx(git ls-files -z --cached --full-name\n> --no-empty-directory); print qq(\\0)\"' | xargs -0 zip foo.zip >\n> /dev/null\n\nIf you feel it is ready for wide use, could you ad information about\nthis project to\n\n  https://git.wiki.kernel.org/index.php/Interfaces,_frontends,_and_tools\n\nThanks in advance.\n\n-- \nJakub Narebski\nPoland\nShadeHawk on #git\n"}]}