summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-05-17 21:38:39 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-05-17 21:38:39 (GMT)
commitbfc99b63fe859e16ddcfcbe6ac09f98b8d06b34e (patch)
tree4b41f6056f3e599052a554e13269838eb040d807 /config.c
parent5bfc50d6fe58ec38f55efff43220dc3274b4629b (diff)
parentebf31e70bbea010c9bb505578ae29532445b5a4d (diff)
downloadgit-bfc99b63fe859e16ddcfcbe6ac09f98b8d06b34e.zip
git-bfc99b63fe859e16ddcfcbe6ac09f98b8d06b34e.tar.gz
git-bfc99b63fe859e16ddcfcbe6ac09f98b8d06b34e.tar.bz2
Merge branch 'js/windows-dotgit'
On Windows, .git and optionally any files whose name starts with a dot are now marked as hidden, with a core.hideDotFiles knob to customize this behaviour. * js/windows-dotgit: mingw: remove unnecessary definition mingw: introduce the 'core.hideDotFiles' setting
Diffstat (limited to 'config.c')
-rw-r--r--config.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.c b/config.c
index 21ff89c..096fe03 100644
--- a/config.c
+++ b/config.c
@@ -915,6 +915,14 @@ static int git_default_core_config(const char *var, const char *value)
return 0;
}
+ if (!strcmp(var, "core.hidedotfiles")) {
+ if (value && !strcasecmp(value, "dotgitonly"))
+ hide_dotfiles = HIDE_DOTFILES_DOTGITONLY;
+ else
+ hide_dotfiles = git_config_bool(var, value);
+ return 0;
+ }
+
/* Add other config variables here and to Documentation/config.txt. */
return 0;
}