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;
Whether to write the results to FETCH_HEAD. Defaults to on. Leave this default in order to behave like git.
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.
Depth of the fetch to perform, or GIT_FETCH_DEPTH_FULL
(or 0
) for full history, or GIT_FETCH_DEPTH_UNSHALLOW
to "unshallow" a shallow repository.
The default is full (GIT_FETCH_DEPTH_FULL
or 0
).
Whether to allow off-site redirects. If this is not specified, the http.followRedirects
configuration setting will be consulted.