Re: [PATCH 1/1] Make git-tar-tree more flexible
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jul 31, 2006, 00:26 UTC
- Message-ID
- <Pine.LNX.4.63.0607310225190.29667@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <7vbqr6dd4t.fsf@assigned-by-dhcp.cox.net>
Hi,
On Sun, 30 Jul 2006, Junio C Hamano wrote:
Show 13 quoted lines
> 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.