[go: up one dir, main page]

Enum git2::RemoteRedirect

source ·
pub enum RemoteRedirect {
    None,
    Initial,
    All,
}
Expand description

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.

Variants§

§

None

Do not follow any off-site redirects at any stage of the fetch or push.

§

Initial

Allow off-site redirects only upon the initial request. This is the default.

§

All

Allow redirects at any stage in the fetch or push.

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.