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@microsoft.com>2014-12-17 15:00:20 -0600
commit91fa31fb6f44919d5dcbaa157cfac9fb49dc44df (patch)
treec4e45bd3bb838e9aad31a12121d315faf8d90bd2 /src/config_cache.c
parent0183c4d2590163f1ac2d813d84c33bdf1bb01f68 (diff)
downloadlibgit2-hf/libgit2sharp_020_patch.tar.gz
Introduce core.protectHFS and core.protectNTFShf/libgit2sharp_020_patch
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)