Struct git2::FetchOptions
[−]
[src]
pub struct FetchOptions<'cb> { // some fields omitted }
Options which can be specified to various fetch operations.
Methods
impl<'cb> FetchOptions<'cb>
fn new() -> FetchOptions<'cb>
Creates a new blank set of fetch options
fn remote_callbacks(&mut self, cbs: RemoteCallbacks<'cb>) -> &mut Self
Set the callbacks to use for the fetch operation.
fn prune(&mut self, prune: FetchPrune) -> &mut Self
Set whether to perform a prune after the fetch.
fn update_fetchhead(&mut self, update: bool) -> &mut Self
Set whether to write the results to FETCH_HEAD.
Defaults to true
.
fn download_tags(&mut self, opt: AutotagOption) -> &mut Self
Set 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.