summaryrefslogtreecommitdiffstats
path: root/git-config.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-04-12 09:45:59 -0700
committerJunio C Hamano <gitster@pobox.com>2022-04-12 09:45:59 -0700
commitbc0ca6c391b654c5e7ccb6e405496919683de6c4 (patch)
tree9659cea8d62337ae8e4735ae1513ca2fdd4877ee /git-config.html
parentfcbe4c3f35e12757fa03b7e8c9b392e427aa5ec1 (diff)
downloadgit-htmldocs-bc0ca6c391b654c5e7ccb6e405496919683de6c4.tar.gz
Autogenerated HTML docs for v2.36.0-rc2
Diffstat (limited to 'git-config.html')
-rw-r--r--git-config.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/git-config.html b/git-config.html
index 36ab8b637..0fdac7053 100644
--- a/git-config.html
+++ b/git-config.html
@@ -9540,6 +9540,30 @@ rerere.enabled
</p>
</dd>
<dt class="hdlist1">
+safe.directory
+</dt>
+<dd>
+<p>
+ These config entries specify Git-tracked directories that are
+ considered safe even if they are owned by someone other than the
+ current user. By default, Git will refuse to even parse a Git
+ config of a repository owned by someone else, let alone run its
+ hooks, and this config setting allows users to specify exceptions,
+ e.g. for intentionally shared repositories (see the <code>--shared</code>
+ option in <a href="git-init.html">git-init(1)</a>).
+</p>
+<div class="paragraph"><p>This is a multi-valued setting, i.e. you can add more than one directory
+via <code>git config --add</code>. To reset the list of safe directories (e.g. to
+override any such directories specified in the system config), add a
+<code>safe.directory</code> entry with an empty value.</p></div>
+<div class="paragraph"><p>This config setting is only respected when specified in a system or global
+config, not when it is specified in a repository config or via the command
+line option <code>-c safe.directory=&lt;path&gt;</code>.</p></div>
+<div class="paragraph"><p>The value of this setting is interpolated, i.e. <code>~/&lt;path&gt;</code> expands to a
+path relative to the home directory and <code>%(prefix)/&lt;path&gt;</code> expands to a
+path relative to Git&#8217;s (runtime) prefix.</p></div>
+</dd>
+<dt class="hdlist1">
sendemail.identity
</dt>
<dd>