core.hidedotfiles: hide '.git' dir by default
commit1e6719438f2e75a540747c3f689711da717c3315
authorErik Faye-Lund <kusmabite@googlemail.com>
Wed, 16 Dec 2009 21:20:55 +0000 (16 22:20 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Fri, 10 Sep 2010 22:43:39 +0000 (10 23:43 +0100)
treea3cfe49468d8ddd2a55584b52739d83b7c41a05b
parentc8fb69ab715a414b6a00528daf17ad17da1f2b3d
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