Skip to main content

get_remote_callbacks_default

Function get_remote_callbacks_default 

Source
pub fn get_remote_callbacks_default<'a>(
    url: Option<&str>,
) -> Result<RemoteCallbacks<'a>>
Expand description

Build git2::RemoteCallbacks for operations that run before a repo exists (e.g. clone). Mirrors git clone precedence (global + XDG + system), tolerating a missing ~/.gitconfig.