git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Narebski <jnareb@gmail.com>
To: fREW Schmidt <frioux@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Yet another git archive all
Date: Sun, 07 Nov 2010 04:00:11 -0800 (PST)	[thread overview]
Message-ID: <m3r5exfiop.fsf@localhost.localdomain> (raw)
In-Reply-To: <AANLkTim07Ku=ETtPEutZ_gWagXdg8kVTUMMDpZcs1kMm@mail.gmail.com>

fREW Schmidt <frioux@gmail.com> writes:

> 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

If you feel it is ready for wide use, could you ad information about
this project to

  https://git.wiki.kernel.org/index.php/Interfaces,_frontends,_and_tools

Thanks in advance.

-- 
Jakub Narebski
Poland
ShadeHawk on #git

      reply	other threads:[~2010-11-07 12:00 UTC|newest]

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

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

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

  git send-email \
    --in-reply-to=m3r5exfiop.fsf@localhost.localdomain \
    --to=jnareb@gmail.com \
    --cc=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.
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).