Struct git2::PushOptions [] [src]

pub struct PushOptions<'cb> {
    // some fields omitted
}

Options to control the behavior of a git push.

Methods

impl<'cb> PushOptions<'cb>
[src]

fn new() -> PushOptions<'cb>

Creates a new blank set of push options

fn remote_callbacks(&mut self, cbs: RemoteCallbacks<'cb>) -> &mut Self

Set the callbacks to use for the fetch operation.

fn packbuilder_parallelism(&mut self, parallel: u32) -> &mut Self

If the transport being used to push to the remote requires the creation of a pack file, this controls the number of worker threads used by the packbuilder when creating that pack file to be sent to the remote.

if set to 0 the packbuilder will auto-detect the number of threads to create, and the default value is 1.