diff options
| author | Edward Thomson <ethomson@github.com> | 2016-02-22 23:46:50 -0500 |
|---|---|---|
| committer | Edward Thomson <ethomson@github.com> | 2016-02-28 12:38:39 -0500 |
| commit | 22a19f5b5795153b4c77c75adfae790c3b919be4 (patch) | |
| tree | 0aa5122a98f379b9ebd11e35b6e8ae48490fd0f8 /src/settings.c | |
| parent | 6cc4bac894281d3e80e1861c1ccb0e234cbd9bb0 (diff) | |
| download | libgit2-22a19f5b5795153b4c77c75adfae790c3b919be4.tar.gz | |
git_libgit2_opts: introduce `GIT_OPT_ENABLE_STRICT_OBJECT_CREATION`
Diffstat (limited to 'src/settings.c')
| -rw-r--r-- | src/settings.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/settings.c b/src/settings.c index d7341abe8..88602bad0 100644 --- a/src/settings.c +++ b/src/settings.c @@ -14,6 +14,7 @@ #include "sysdir.h" #include "cache.h" #include "global.h" +#include "object.h" void git_libgit2_version(int *major, int *minor, int *rev) { @@ -181,6 +182,11 @@ int git_libgit2_opts(int key, ...) } break; + + case GIT_OPT_ENABLE_STRICT_OBJECT_CREATION: + git_object__strict_input_validation = (va_arg(ap, int) != 0); + break; + default: giterr_set(GITERR_INVALID, "invalid option key"); error = -1; |
