diff options
author | Ben Straub <bs@github.com> | 2013-01-02 13:43:54 -0800 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2013-01-02 13:43:54 -0800 |
commit | 730df6d0f70a343ade75ef9411fe0435b0afd5a9 (patch) | |
tree | 04ee3bdda17825ae87882dc578073304df2703a7 /include/git2/clone.h | |
parent | c07b52df1b2d0d89c5fc1b2eae9dbf99e6571fe1 (diff) | |
download | libgit2-730df6d0f70a343ade75ef9411fe0435b0afd5a9.tar.gz |
Include checkout options inline
Diffstat (limited to 'include/git2/clone.h')
-rw-r--r-- | include/git2/clone.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/git2/clone.h b/include/git2/clone.h index 72fba0ee2..c6ab8032b 100644 --- a/include/git2/clone.h +++ b/include/git2/clone.h @@ -31,14 +31,14 @@ GIT_BEGIN_DECL * * git_clone_options opts = GIT_CLONE_OPTIONS_INIT; * + * - `checkout_opts` is options for the checkout step. To disable checkout, + * 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 - * - `checkout_opts` is options for the checkout step. If NULL, no checkout is - * performed * * ** "origin" remote options: ** * - `remote_name` is the name given to the "origin" remote. The default is @@ -62,10 +62,10 @@ GIT_BEGIN_DECL typedef struct git_clone_options { unsigned int version; + git_checkout_opts checkout_opts; int bare; git_transfer_progress_callback fetch_progress_cb; void *fetch_progress_payload; - git_checkout_opts *checkout_opts; const char *remote_name; const char *pushurl; @@ -79,7 +79,7 @@ typedef struct git_clone_options { } git_clone_options; #define GIT_CLONE_OPTIONS_VERSION 1 -#define GIT_CLONE_OPTIONS_INIT {GIT_CLONE_OPTIONS_VERSION} +#define GIT_CLONE_OPTIONS_INIT {GIT_CLONE_OPTIONS_VERSION, {GIT_CHECKOUT_OPTS_VERSION, GIT_CHECKOUT_SAFE}} /** * Clone a remote repository, and checkout the branch pointed to by the remote |