提交 687157c7 编写于 作者: R René Scharfe 提交者: Junio C Hamano

Documentation: update tar.umask default

As noted by Mike Hommey, the documentation for the config setting tar.umask
is not up-to-date.  Commit f08b3b0e changed
the default from 0 to 2; this patch finally documents it.
Signed-off-by: NRene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 8fa0ee3b
...@@ -675,15 +675,11 @@ showbranch.default:: ...@@ -675,15 +675,11 @@ showbranch.default::
See gitlink:git-show-branch[1]. See gitlink:git-show-branch[1].
tar.umask:: tar.umask::
By default, gitlink:git-tar-tree[1] sets file and directories modes This variable can be used to restrict the permission bits of
to 0666 or 0777. While this is both useful and acceptable for projects tar archive entries. The default is 0002, which turns off the
such as the Linux Kernel, it might be excessive for other projects. world write bit. The special value "user" indicates that the
With this variable, it becomes possible to tell archiving user's umask will be used instead. See umask(2) and
gitlink:git-tar-tree[1] to apply a specific umask to the modes above. gitlink:git-archive[1].
The special value "user" indicates that the user's current umask will
be used. This should be enough for most projects, as it will lead to
the same permissions as gitlink:git-checkout[1] would use. The default
value remains 0, which means world read-write.
user.email:: user.email::
Your email address to be recorded in any newly created commits. Your email address to be recorded in any newly created commits.
......
...@@ -72,16 +72,13 @@ zip ...@@ -72,16 +72,13 @@ zip
CONFIGURATION CONFIGURATION
------------- -------------
By default, file and directories modes are set to 0666 or 0777 in tar
archives. It is possible to change this by setting the "umask" variable
in the repository configuration as follows :
[tar] tar.umask::
umask = 002 ;# group friendly This variable can be used to restrict the permission bits of
tar archive entries. The default is 0002, which turns off the
The special umask value "user" indicates that the user's current umask world write bit. The special value "user" indicates that the
will be used instead. The default value remains 0, which means world archiving user's umask will be used instead. See umask(2) for
readable/writable files and directories. details.
EXAMPLES EXAMPLES
-------- --------
......
...@@ -42,16 +42,13 @@ OPTIONS ...@@ -42,16 +42,13 @@ OPTIONS
CONFIGURATION 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] tar.umask::
umask = 002 ;# group friendly This variable can be used to restrict the permission bits of
tar archive entries. The default is 0002, which turns off the
The special umask value "user" indicates that the user's current umask world write bit. The special value "user" indicates that the
will be used instead. The default value is 002, which means group archiving user's umask will be used instead. See umask(2) for
readable/writable files and directories. details.
EXAMPLES EXAMPLES
-------- --------
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册