summaryrefslogtreecommitdiff
path: root/include/git2/clone.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-09-20 22:57:01 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2013-10-02 06:42:26 +0200
commitc833893c64d28d4c017fdbf90bbeb714314a8dd9 (patch)
treea3a8535a34dbc33ffc014aae71cdbdb27074dd08 /include/git2/clone.h
parenteec1c1fe1e9a12b57c4014be25ce4ed390c8e199 (diff)
downloadlibgit2-c833893c64d28d4c017fdbf90bbeb714314a8dd9.tar.gz
clone: re-allow using a custom remote name
This is a small thing that by itself doesn't quite justify making the user use clone_into.
Diffstat (limited to 'include/git2/clone.h')
-rw-r--r--include/git2/clone.h22
1 files changed, 5 insertions, 17 deletions
diff --git a/include/git2/clone.h b/include/git2/clone.h
index a59de1bc7..bd602fb7a 100644
--- a/include/git2/clone.h
+++ b/include/git2/clone.h
@@ -35,25 +35,12 @@ GIT_BEGIN_DECL
* set the `checkout_strategy` to GIT_CHECKOUT_DEFAULT.
* - `bare` should be set to zero to create a standard repo, non-zero for
* a bare repo
- * - `fetch_progress_cb` is optional callback for fetch progress. Be aware that
- * this is called inline with network and indexing operations, so performance
- * may be affected.
- * - `fetch_progress_payload` is payload for fetch_progress_cb
+ * - `ignore_cert_errors` should be set to 1 if errors validating the remote host's
+ * certificate should be ignored.
*
* ** "origin" remote options: **
* - `remote_name` is the name given to the "origin" remote. The default is
* "origin".
- * - `pushurl` is a URL to be used for pushing. NULL means use the fetch url.
- * - `fetch_spec` is the fetch specification to be used for fetching. NULL
- * results in the same behavior as GIT_REMOTE_DEFAULT_FETCH.
- * - `push_spec` is the fetch specification to be used for pushing. NULL means
- * use the same spec as for fetching.
- * - `transport_flags` is flags used to create transport if no transport is
- * provided.
- * - `transport` is a custom transport to be used for the initial fetch. NULL
- * means use the transport autodetected from the URL.
- * - `remote_callbacks` may be used to specify custom progress callbacks for
- * the origin remote before the fetch is initiated.
* - `checkout_branch` gives the name of the branch to checkout. NULL means
* use the remote's HEAD.
*/
@@ -62,10 +49,11 @@ typedef struct git_clone_options {
unsigned int version;
git_checkout_opts checkout_opts;
+ git_remote_callbacks *remote_callbacks;
+
int bare;
int ignore_cert_errors;
-
- git_remote_callbacks *remote_callbacks;
+ const char *remote_name;
const char* checkout_branch;
} git_clone_options;