libgit2

git_fetch_options

Version:

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;

Signature

typedef struct git_fetch_options { int version git_remote_callbacks callbacks git_fetch_prune_t prune int update_fetchhead git_remote_autotag_option_t download_tags git_proxy_options proxy_opts git_strarray custom_headers };

Members

int
version
callbacks

Callbacks to use for this fetch operation

prune

Whether to perform a prune after the fetch

int
update_fetchhead

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

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.

The default is to auto-follow tags.

proxy_opts

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

custom_headers

Extra headers for this fetch operation

Parameter To

Versions