git_clone_options

Clone options structure

Initialize with GIT_CLONE_OPTIONS_INIT. Alternatively, you can use git_clone_options_init.

Members

Variables

bare
int bare;

Set to zero (false) to create a standard repo, or non-zero for a bare repo

checkout_branch
const(char)* checkout_branch;

The name of the branch to checkout. null means use the remote's default branch.

checkout_opts
libgit2_d.checkout.git_checkout_options checkout_opts;

These options are passed to the checkout step. To disable checkout, set the checkout_strategy to git_checkout_strategy_t.GIT_CHECKOUT_NONE.

fetch_opts
libgit2_d.remote.git_fetch_options fetch_opts;

Options which control the fetch, including callbacks.

local
.git_clone_local_t local;

Whether to use a fetch or copy the object database.

remote_cb
.git_remote_create_cb remote_cb;

A callback used to create the git_remote, prior to its being used to perform the clone operation. See the documentation for git_remote_create_cb for details. This parameter may be null, indicating that git_clone should provide default behavior.

remote_cb_payload
void* remote_cb_payload;

An opaque payload to pass to the git_remote creation callback. This parameter is ignored unless remote_cb is non-null.

repository_cb
.git_repository_create_cb repository_cb;

A callback used to create the new repository into which to clone. If null, the 'bare' field will be used to determine whether to create a bare repository.

repository_cb_payload
void* repository_cb_payload;

An opaque payload to pass to the libgit2_d.types.git_repository creation callback. This parameter is ignored unless repository_cb is non-null.

version_
uint version_;
Undocumented in source.

Meta