INDEXER_MAX_OBJECTS -> PACK_MAX_OBJECTS
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
diff --git a/include/git2/common.h b/include/git2/common.h
index e5fff06..a14e096 100644
--- a/include/git2/common.h
+++ b/include/git2/common.h
@@ -196,8 +196,8 @@ typedef enum {
GIT_OPT_ENABLE_STRICT_HASH_VERIFICATION,
GIT_OPT_SET_ALLOCATOR,
GIT_OPT_ENABLE_UNSAVED_INDEX_SAFETY,
- GIT_OPT_GET_INDEXER_MAX_OBJECTS,
- GIT_OPT_SET_INDEXER_MAX_OBJECTS
+ GIT_OPT_GET_PACK_MAX_OBJECTS,
+ GIT_OPT_SET_PACK_MAX_OBJECTS
} git_libgit2_opt_t;
/**
@@ -374,14 +374,14 @@ typedef enum {
* > fail. (Using the FORCE flag to checkout will still overwrite
* > these changes.)
*
- * opts(GIT_OPT_GET_INDEXER_MAX_OBJECTS, size_t *out)
+ * opts(GIT_OPT_GET_PACK_MAX_OBJECTS, size_t *out)
*
* > Get the maximum number of objects libgit2 will allow in a pack
* > file when downloading a pack file from a remote. This can be
* > used to limit maximum memory usage when fetching from an untrusted
* > remote.
*
- * opts(GIT_OPT_SET_INDEXER_MAX_OBJECTS, size_t objects)
+ * opts(GIT_OPT_SET_PACK_MAX_OBJECTS, size_t objects)
*
* > Set the maximum number of objects libgit2 will allow in a pack
* > file when downloading a pack file from a remote.
diff --git a/src/settings.c b/src/settings.c
index cac398d..4565507 100644
--- a/src/settings.c
+++ b/src/settings.c
@@ -271,11 +271,11 @@ int git_libgit2_opts(int key, ...)
git_index__enforce_unsaved_safety = (va_arg(ap, int) != 0);
break;
- case GIT_OPT_SET_INDEXER_MAX_OBJECTS:
+ case GIT_OPT_SET_PACK_MAX_OBJECTS:
git_indexer__max_objects = va_arg(ap, size_t);
break;
- case GIT_OPT_GET_INDEXER_MAX_OBJECTS:
+ case GIT_OPT_GET_PACK_MAX_OBJECTS:
*(va_arg(ap, size_t *)) = git_indexer__max_objects;
break;