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§
Auto Trait Implementations§
impl Freeze for RemoteRedirect
impl RefUnwindSafe for RemoteRedirect
impl Send for RemoteRedirect
impl Sync for RemoteRedirect
impl Unpin for RemoteRedirect
impl UnwindSafe for RemoteRedirect
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more