Commit b3ca817e2822610292efe8ac5e8950931855dd7a

Nelson Elhage 2018-07-16T03:14:33

INDEXER_MAX_OBJECTS -> PACK_MAX_OBJECTS

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;