From 60e342888099a3ffd4776bfd23967fa908caf09e Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sat, 9 Jan 2010 19:33:25 +0100 Subject: [PATCH] When initializing .git/, record the current setting of core.hideDotFiles This is on Windows only, of course. Signed-off-by: Johannes Schindelin --- compat/mingw.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compat/mingw.c b/compat/mingw.c index 9f6df8762d..884f698873 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -132,6 +132,10 @@ void mingw_mark_as_git_dir(const char *dir) { if (hide_dotfiles != HIDE_DOTFILES_FALSE && make_hidden(dir)) warning("Failed to make '%s' hidden", dir); + git_config_set("core.hideDotFiles", + hide_dotfiles == HIDE_DOTFILES_FALSE ? "false" : + (hide_dotfiles == HIDE_DOTFILES_DOTGITONLY ? + "dotGitOnly" : "true")); } #undef mkdir -- 2.11.4.GIT