summaryrefslogtreecommitdiff
path: root/include/git2/clone.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-10-02 14:04:44 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2013-10-02 14:04:44 +0200
commit0e0cf78773bea0d06298ba3bf981a3be839041df (patch)
tree4b879238df61eccc2f048fe51e10fce421967e26 /include/git2/clone.h
parentffc97d51264f8af435ccf52d33a62a6925b174c9 (diff)
downloadlibgit2-0e0cf78773bea0d06298ba3bf981a3be839041df.tar.gz
clone: put the callbacks struct directly in the clone options
There's no need for this to be a pointer to somewhere else.
Diffstat (limited to 'include/git2/clone.h')
-rw-r--r--include/git2/clone.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/git2/clone.h b/include/git2/clone.h
index a341a413c..331cf92e7 100644
--- a/include/git2/clone.h
+++ b/include/git2/clone.h
@@ -49,7 +49,7 @@ typedef struct git_clone_options {
unsigned int version;
git_checkout_opts checkout_opts;
- git_remote_callbacks *remote_callbacks;
+ git_remote_callbacks remote_callbacks;
int bare;
int ignore_cert_errors;
@@ -58,7 +58,7 @@ typedef struct git_clone_options {
} git_clone_options;
#define GIT_CLONE_OPTIONS_VERSION 1
-#define GIT_CLONE_OPTIONS_INIT {GIT_CLONE_OPTIONS_VERSION, {GIT_CHECKOUT_OPTS_VERSION, GIT_CHECKOUT_SAFE_CREATE}}
+#define GIT_CLONE_OPTIONS_INIT {GIT_CLONE_OPTIONS_VERSION, {GIT_CHECKOUT_OPTS_VERSION, GIT_CHECKOUT_SAFE_CREATE}, GIT_REMOTE_CALLBACKS_INIT}
/**
* Clone a remote repository.