mirror of
https://github.com/git/git.git
synced 2026-02-12 10:51:05 +00:00
When initializing .git/, record the current setting of core.hideDotFiles
This is on Windows only, of course. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
committed by
Pat Thoyts
parent
8bdefe26ec
commit
fa9dad956c
@@ -295,6 +295,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
|
||||
|
||||
Reference in New Issue
Block a user