[][src]Struct git2::FetchOptions

pub struct FetchOptions<'cb> { /* fields omitted */ }

Options which can be specified to various fetch operations.

Methods

impl<'cb> 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]

Set the callbacks to use for the fetch operation.

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]

Set whether to perform a prune after the fetch.

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]

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.

Trait Implementations

impl<'cb> Default for FetchOptions<'cb>
[src]

Auto Trait Implementations

impl<'cb> !Send for FetchOptions<'cb>

impl<'cb> !Sync for FetchOptions<'cb>

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]