summaryrefslogtreecommitdiff
path: root/src/config_cache.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2014-12-16 18:53:55 -0600
committerEdward Thomson <ethomson@edwardthomson.com>2014-12-17 12:52:07 -0500
commitec74b40ceef3dc3892c7d84bb4f5d99bab504ba4 (patch)
treea33dbb62e0f08e14730557695bd911037079c0af /src/config_cache.c
parent8e35527de25ac156f3600e2ce49b0c3483c258c4 (diff)
downloadlibgit2-ec74b40ceef3dc3892c7d84bb4f5d99bab504ba4.tar.gz
Introduce core.protectHFS and core.protectNTFS
Validate HFS ignored char ".git" paths when `core.protectHFS` is specified. Validate NTFS invalid ".git" paths when `core.protectNTFS` is specified.
Diffstat (limited to 'src/config_cache.c')
-rw-r--r--src/config_cache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config_cache.c b/src/config_cache.c
index 45c39ce17..d397a4bab 100644
--- a/src/config_cache.c
+++ b/src/config_cache.c
@@ -76,6 +76,8 @@ static struct map_data _cvar_maps[] = {
{"core.precomposeunicode", NULL, 0, GIT_PRECOMPOSE_DEFAULT },
{"core.safecrlf", _cvar_map_safecrlf, ARRAY_SIZE(_cvar_map_safecrlf), GIT_SAFE_CRLF_DEFAULT},
{"core.logallrefupdates", NULL, 0, GIT_LOGALLREFUPDATES_DEFAULT },
+ {"core.protecthfs", NULL, 0, GIT_PROTECTHFS_DEFAULT },
+ {"core.protectntfs", NULL, 0, GIT_PROTECTNTFS_DEFAULT },
};
int git_config__cvar(int *out, git_config *config, git_cvar_cached cvar)