[][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> Unpin for FetchOptions<'cb>

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

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

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

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

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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