diff options
author | yuangli <yuangli@mathworks.com> | 2022-07-29 13:53:29 +0100 |
---|---|---|
committer | yuangli <yuangli@mathworks.com> | 2022-07-29 13:53:29 +0100 |
commit | 73d25f0e7b026d7b744e249d922f248376bcce5d (patch) | |
tree | d3de8a383270ebc9dba7763b2c7a00a6deaa8bf6 /include | |
parent | 68bbcefd35a8b3a864e9ed7598b19fefc5f74055 (diff) | |
download | libgit2-73d25f0e7b026d7b744e249d922f248376bcce5d.tar.gz |
remove build errors
Diffstat (limited to 'include')
-rw-r--r-- | include/git2/remote.h | 12 | ||||
-rw-r--r-- | include/git2/repository.h | 1 |
2 files changed, 7 insertions, 6 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index 871d898e5..33f5103ce 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -744,6 +744,11 @@ typedef struct { git_proxy_options proxy_opts; /** + * Depth of the fetch to perform + */ + int depth; + + /** * Whether to allow off-site redirects. If this is not * specified, the `http.followRedirects` configuration setting * will be consulted. @@ -754,16 +759,11 @@ typedef struct { * Extra headers for this fetch operation */ git_strarray custom_headers; - - /** - * Depth of the fetch to perform - */ - int depth; } git_fetch_options; #define GIT_FETCH_OPTIONS_VERSION 1 #define GIT_FETCH_OPTIONS_INIT { GIT_FETCH_OPTIONS_VERSION, GIT_REMOTE_CALLBACKS_INIT, GIT_FETCH_PRUNE_UNSPECIFIED, 1, \ - GIT_REMOTE_DOWNLOAD_TAGS_UNSPECIFIED, GIT_PROXY_OPTIONS_INIT, { NULL }, -1 } + GIT_REMOTE_DOWNLOAD_TAGS_UNSPECIFIED, GIT_PROXY_OPTIONS_INIT, -1 } /** * Initialize git_fetch_options structure diff --git a/include/git2/repository.h b/include/git2/repository.h index 24a94118b..d6b054dc3 100644 --- a/include/git2/repository.h +++ b/include/git2/repository.h @@ -11,6 +11,7 @@ #include "types.h" #include "oid.h" #include "buffer.h" +#include "oidarray.h" /** * @file git2/repository.h |