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