Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
b3ca817e
Commit
b3ca817e
authored
Jul 16, 2018
by
Nelson Elhage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
INDEXER_MAX_OBJECTS -> PACK_MAX_OBJECTS
parent
bfe34242
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
include/git2/common.h
+4
-4
src/settings.c
+2
-2
No files found.
include/git2/common.h
View file @
b3ca817e
...
...
@@ -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.
...
...
src/settings.c
View file @
b3ca817e
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment