summaryrefslogtreecommitdiff
path: root/include/git2/remote.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/git2/remote.h')
-rw-r--r--include/git2/remote.h12
1 files changed, 6 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