summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/git2/common.h6
-rw-r--r--include/git2/errors.h3
2 files changed, 7 insertions, 2 deletions
diff --git a/include/git2/common.h b/include/git2/common.h
index ccf66334a..defa24a6a 100644
--- a/include/git2/common.h
+++ b/include/git2/common.h
@@ -222,7 +222,8 @@ typedef enum {
GIT_OPT_GET_EXTENSIONS,
GIT_OPT_SET_EXTENSIONS,
GIT_OPT_GET_OWNER_VALIDATION,
- GIT_OPT_SET_OWNER_VALIDATION
+ GIT_OPT_SET_OWNER_VALIDATION,
+ GIT_OPT_ENABLE_SHALLOW
} git_libgit2_opt_t;
/**
@@ -459,6 +460,9 @@ typedef enum {
* > { "!noop", "newext" } indicates that the caller does not want
* > to support repositories with the `noop` extension but does want
* > to support repositories with the `newext` extension.
+ *
+ * opts(GIT_OPT_ENABLE_SHALLOW, int enabled)
+ * > Enable or disable shallow clone support completely.
*
* opts(GIT_OPT_GET_OWNER_VALIDATION, int *enabled)
* > Gets the owner validation setting for repository
diff --git a/include/git2/errors.h b/include/git2/errors.h
index a61964bbb..e634a97c1 100644
--- a/include/git2/errors.h
+++ b/include/git2/errors.h
@@ -109,7 +109,8 @@ typedef enum {
GIT_ERROR_WORKTREE,
GIT_ERROR_SHA,
GIT_ERROR_HTTP,
- GIT_ERROR_INTERNAL
+ GIT_ERROR_INTERNAL,
+ GIT_ERROR_GRAFTS
} git_error_t;
/**