Skip to content

Commit b63fafd

Browse files
dschoJunio C Hamano
authored andcommitted
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> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 0347a8c commit b63fafd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Documentation/git-tar-tree.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ git tar-tree --remote=example.com:git.git v1.4.0 >git-1.4.0.tar::
7171

7272
Get a tarball v1.4.0 from example.com.
7373

74+
git tar-tree HEAD:Documentation/ git-docs > git-1.4.0-docs.tar::
75+
76+
Put everything in the current head's Documentation/ directory
77+
into 'git-1.4.0-docs.tar', with the prefix 'git-docs/'.
78+
7479
Author
7580
------
7681
Written by Rene Scharfe.

0 commit comments

Comments
 (0)