core.hidedotfiles: hide '.git' dir by default
commit5ad0401905225e4498ac64bf57fc841399daef09
authorErik Faye-Lund <kusmabite@googlemail.com>
Wed, 16 Dec 2009 21:20:55 +0000 (16 22:20 +0100)
committerStepan Kasal <kasal@ucw.cz>
Thu, 15 May 2014 07:41:37 +0000 (15 09:41 +0200)
tree9f15396b0249c749c05c4fb2370fdf82c21c6773
parent9d863235599c50d77ac35ab1cfa161fbf27310ea
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
config.c
environment.c
git-compat-util.h