Skip to main content

get_remote_callbacks

Function get_remote_callbacks 

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

Build git2::RemoteCallbacks using the given repo’s config to drive credential resolution. Mirrors git fetch/git push precedence: local .git/config > worktree config > global > XDG > system.