From: Johannes Schindelin Date: Mon, 31 Jul 2006 00:26:27 GMT Subject: Re: [PATCH 1/1] Make git-tar-tree more flexible Message-ID: In-Reply-To: <7vbqr6dd4t.fsf@assigned-by-dhcp.cox.net> Hi, On Sun, 30 Jul 2006, Junio C Hamano wrote: > Anand Kumria writes: > > > If you have a project which is setup like: > > project > > website > > and you decide you wish to generate a tar archive of _just_ the 'project' > > portion, git-tar-tree is not able to help. This patch adds two parameters > > which can assist. > > No need I see. > > git tar-tree tag-1.0:project project-1.0/project > git tar-tree tag-1.0:project project-1.0 So how about this: -- 8< -- [PATCH] tar-tree: illustrate an obscure feature better Since you can tar just a subdirectory of a certain revision, tell the users so, by showing an example how to do it. Signed-off-by: Johannes Schindelin --- Documentation/git-tar-tree.txt | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/Documentation/git-tar-tree.txt b/Documentation/git-tar-tree.txt index 7a99acf..1e1c7fa 100644 --- a/Documentation/git-tar-tree.txt +++ b/Documentation/git-tar-tree.txt @@ -71,6 +71,11 @@ git tar-tree --remote=example.com:git.gi Get a tarball v1.4.0 from example.com. +git tar-tree HEAD:Documentation/ git-docs > git-1.4.0-docs.tar:: + + Put everything in the current head's Documentation/ directory + into 'git-1.4.0-docs.tar', with the prefix 'git-docs/'. + Author ------ Written by Rene Scharfe.