Re: git-archive for files changed in revision range
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Feb 13, 2008, 13:43 UTC
- Message-ID
- <47B2F3FB.3020600@viscovery.net>
- In-Reply-To
- <20080213130304.GA19957@grahamcox.co.uk>
Graham Cox schrieb:
Show 6 quoted lines
> 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