X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Documentation%2Fgit-tar-tree.txt;h=b3097aa79cda0346cc83d0dc9a2db2fa2ca47276;hb=877276d4d3018d2810be990c39fa7f59678e960d;hp=2d01d9666fd2ab5f53ab2265ca701d56ea370f8b;hpb=11a264050f61bb15c413cced058db2ac96fd96f9;p=git.git diff --git a/Documentation/git-tar-tree.txt b/Documentation/git-tar-tree.txt index 2d01d9666..b3097aa79 100644 --- a/Documentation/git-tar-tree.txt +++ b/Documentation/git-tar-tree.txt @@ -8,7 +8,7 @@ git-tar-tree - Create a tar archive of the files in the named tree object SYNOPSIS -------- -'git-tar-tree' [--remote=] [ ] +'git tar-tree' [--remote=] [ ] DESCRIPTION ----------- @@ -19,12 +19,12 @@ Creates a tar archive containing the tree structure for the named tree. When is specified it is added as a leading path to the files in the generated tar archive. -git-tar-tree behaves differently when given a tree ID versus when given +`git-tar-tree` behaves differently when given a tree ID versus when given a commit ID or tag ID. In the first case the current time is used as modification time of each file in the archive. In the latter case the commit time as recorded in the referenced commit object is used instead. Additionally the commit ID is stored in a global extended pax header. -It can be extracted using git-get-tar-commit-id. +It can be extracted using `git-get-tar-commit-id`. OPTIONS ------- @@ -42,16 +42,13 @@ OPTIONS CONFIGURATION ------------- -By default, file and directories modes are set to 0666 or 0777. It is -possible to change this by setting the "umask" variable in the -repository configuration as follows : -[tar] - umask = 002 ;# group friendly - -The special umask value "user" indicates that the user's current umask -will be used instead. The default value is 002, which means group -readable/writable files and directories. +tar.umask:: + This variable can be used to restrict the permission bits of + tar archive entries. The default is 0002, which turns off the + world write bit. The special value "user" indicates that the + archiving user's umask will be used instead. See umask(2) for + details. EXAMPLES -------- @@ -89,4 +86,4 @@ Documentation by David Greaves, Junio C Hamano and the git-list