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

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.
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 5 in “Make git-tar-tree more flexible”
  1. 1/1 Make git-tar-tree more flexibleAnand Kumria, Jul 30, 2006
  2. A Large Angry SCMJul 30, 2006
  3. Junio C HamanoJul 30, 2006
  4. Johannes SchindelinJul 31, 2006
  5. Junio C HamanoJul 31, 2006

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.