[go: up one dir, main page]

Struct git2::PushOptions

source ·
pub struct PushOptions<'cb> { /* private fields */ }
Expand description

Options to control the behavior of a git push.

Implementations§

Creates a new blank set of push options

Set the callbacks to use for the push operation.

Set the proxy options to use for the push operation.

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.

Set remote redirection settings; whether redirects to another host are permitted.

By default, git will follow a redirect on the initial request (/info/refs), but not subsequent requests.

Set extra headers for this push operation.

Trait Implementations§

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.