mingw: introduce the 'core.hideDotFiles' setting
[gitweb.git] / config.c
index 9ba40bc1b039b9b65425dc4fa1bd9c7f1fcb0868..537434a1a0bb501c12546f38ca9e2fc598ca7561 100644 (file)
--- a/config.c
+++ b/config.c
@@ -912,6 +912,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;
 }