core.hidedotfiles: hide '.git' dir by default
commit9252f22219196046ed4119c790b6a74cdf61bca1
authorErik Faye-Lund <kusmabite@googlemail.com>
Wed, 16 Dec 2009 21:20:55 +0000 (16 22:20 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 22 Oct 2012 12:28:48 +0000 (22 13:28 +0100)
tree01eb5a596790ab89cac5e4aca576806f76863f54
parent8af1dc4953da13d13f8a761e5275697dfc16d0f0
core.hidedotfiles: hide '.git' dir by default

At least for cross-platform projects, it makes sense to hide the
files starting with a dot, as this is the behavior on Unix/MacOSX.

However, at least Eclipse has problems interpreting the hidden flag
correctly, so the default is to hide only the .git/ directory.

The config setting core.hideDotFiles therefore supports not only
'true' and 'false', but also 'dotGitOnly'.

[jes: clarified the commit message, made git init respect the setting
by marking the .git/ directory only after reading the config, and added
documentation, and rebased on top of current junio/next]

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Documentation/config.txt
builtin/init-db.c
cache.h
compat/mingw.c
compat/mingw.h
config.c
environment.c
git-compat-util.h