git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Jeff King
Message 4 of 4 in “git-archive for files changed in revision range”
  1. Graham CoxFeb 13, 2008
  2. Johannes SchindelinFeb 13, 2008
  3. Jeff KingFeb 13, 2008
  4. Johannes SixtFeb 13, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.