git_fetch_options

Fetch options structure.

Zero out for defaults. Initialize with GIT_FETCH_OPTIONS_INIT macro to correctly set the version_ field. E.g.

git_fetch_options opts = GIT_FETCH_OPTIONS_INIT;

Members

Variables

callbacks
.git_remote_callbacks callbacks;

Callbacks to use for this fetch operation

custom_headers
libgit2_d.strarray.git_strarray custom_headers;

Extra headers for this fetch operation

download_tags
.git_remote_autotag_option_t download_tags;

Determines how to behave regarding tags on the remote, such as auto-downloading tags for objects we're downloading or downloading all of them.

proxy_opts
libgit2_d.proxy.git_proxy_options proxy_opts;

Proxy options to use, by default no proxy is used.

prune
.git_fetch_prune_t prune;

Whether to perform a prune after the fetch

update_fetchhead
int update_fetchhead;

Whether to write the results to FETCH_HEAD. Defaults to on. Leave this default in order to behave like git.

version_
int version_;
Undocumented in source.

Meta