Subject: Re: git-archive for files changed in revision range

From: Johannes Sixt <[email-masked]>
Date: Wed, 13 Feb 2008 14:43:23 +0100

Graham Cox schrieb:
> The command line I used was something like (This is mostly from memory):
> git-archive --format=zip . `git-whatchanged <start>..HEAD --pretty=oneline 
>   | grep '^:' | sed 's/^.*\t//'` > release.zip
> 
> To produce a zip containing all of the modified and added files for the 
> revision range <start>..HEAD.

git diff-tree -r --name-only -z <start> HEAD | \
    xargs -0 git archive --format=zip HEAD > release.zip

-- Hannes