summaryrefslogtreecommitdiff
path: root/src/repository.h
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/repository.h
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/repository.h')
-rw-r--r--src/repository.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/repository.h b/src/repository.h
index 4b73b68cb..e38292a7c 100644
--- a/src/repository.h
+++ b/src/repository.h
@@ -40,6 +40,8 @@ typedef enum {
GIT_CVAR_PRECOMPOSE, /* core.precomposeunicode */
GIT_CVAR_SAFE_CRLF, /* core.safecrlf */
GIT_CVAR_LOGALLREFUPDATES, /* core.logallrefupdates */
+ GIT_CVAR_PROTECTHFS, /* core.protectHFS */
+ GIT_CVAR_PROTECTNTFS, /* core.protectNTFS */
GIT_CVAR_CACHE_MAX
} git_cvar_cached;
@@ -96,6 +98,10 @@ typedef enum {
/* core.logallrefupdates */
GIT_LOGALLREFUPDATES_UNSET = 2,
GIT_LOGALLREFUPDATES_DEFAULT = GIT_LOGALLREFUPDATES_UNSET,
+ /* core.protectHFS */
+ GIT_PROTECTHFS_DEFAULT = GIT_CVAR_FALSE,
+ /* core.protectNTFS */
+ GIT_PROTECTNTFS_DEFAULT = GIT_CVAR_FALSE,
} git_cvar_value;
/* internal repository init flags */