Re: [PATCH 1/1] Make git-tar-tree more flexible

From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Date: 2006-07-31 10:26:27
Hi,

On Sun, 30 Jul 2006, Junio C Hamano wrote:

> Anand Kumria <wildfire@progsoc.org> 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 <Johannes.Schindelin@gmx.de>

---

 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.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Mon Jul 31 10:27:03 2006

This archive was generated by hypermail 2.1.8 : 2006-07-31 10:27:32 EST