X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=Documentation%2Fgit-archive.txt;h=bc132c87e1a5b9f42ea1f2bbd4e3c46f67fc3852;hb=104d3794481c83f8db00ccf85134fc55c76852f9;hp=5b3eb12c8a1e8ac50f09745efd091882b248f1bc;hpb=b19293df9e84ed056bc984aa7ef716689b58b0b1;p=git.git diff --git a/Documentation/git-archive.txt b/Documentation/git-archive.txt index 5b3eb12c8..bc132c87e 100644 --- a/Documentation/git-archive.txt +++ b/Documentation/git-archive.txt @@ -10,6 +10,7 @@ SYNOPSIS -------- [verse] 'git archive' --format= [--list] [--prefix=/] [] + [--output=] [--worktree-attributes] [--remote= [--exec=]] [path...] @@ -22,7 +23,7 @@ prepended to the filenames in the archive. 'git-archive' behaves differently when given a tree ID versus when given a commit ID or tag ID. In the first case the current time is -used as modification time of each file in the archive. In the latter +used as the modification time of each file in the archive. In the latter case the commit time as recorded in the referenced commit object is used instead. Additionally the commit ID is stored in a global extended pax header if the tar format is used; it can be extracted @@ -47,12 +48,18 @@ OPTIONS --prefix=/:: Prepend / to each filename in the archive. +--output=:: + Write the archive to instead of stdout. + +--worktree-attributes:: + Look for attributes in .gitattributes in working directory too. + :: - This can be any options that the archiver backend understand. + This can be any options that the archiver backend understands. See next section. --remote=:: - Instead of making a tar archive from local repository, + Instead of making a tar archive from the local repository, retrieve a tar archive from a remote repository. --exec=:: @@ -105,7 +112,7 @@ EXAMPLES git archive --format=tar --prefix=junk/ HEAD | (cd /var/tmp/ && tar xf -):: Create a tar archive that contains the contents of the - latest commit on the current branch, and extracts it in + latest commit on the current branch, and extract it in the `/var/tmp/junk` directory. git archive --format=tar --prefix=git-1.4.0/ v1.4.0 | gzip >git-1.4.0.tar.gz::