Document the new core.bare configuration option.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Shawn O. Pearce committed
Feb 21, 2007 at 17:59 UTC
e4a15f40bcd9e5679345d3cc74db3162310a7c83
1 file changed
+12
Documentation/config.txt
+12
@@ -142,6 +142,18 @@ core.preferSymlinkRefs::
142
This is sometimes needed to work with old scripts that
143
expect HEAD to be a symbolic link.
144
145
+core.bare::
146
+ If true this repository is assumed to be 'bare' and has no
147
+ working directory associated with it. If this is the case a
148
+ number of commands that require a working directory will be
149
+ disabled, such as gitlink:git-add[1] or gitlink:git-merge[1].
150
++
151
+This setting is automatically guessed by gitlink:git-clone[1] or
152
+gitlink:git-init[1] when the repository was created. By default a
153
+repository that ends in "/.git" is assumed to be not bare (bare =
154
+false), while all other repositories are assumed to be bare (bare
155
+= true).
156
+
157
core.logAllRefUpdates::
158
Updates to a ref <ref> is logged to the file
159
"$GIT_DIR/logs/<ref>", by appending the new and old