MCPcopy Index your code
hub / github.com/codealong/codealong / with_authentication

Function with_authentication

codealong/src/utils.rs:40–221  ·  view source on GitHub ↗

Prepare the authentication callbacks for cloning a git repository. The main purpose of this function is to construct the "authentication callback" which is used to clone a repository. This callback will attempt to find the right authentication on the system (without user input) and will guide libgit2 in doing so. The callback is provided `allowed` types of credentials, and we try to do as much a

(url: &str, cfg: &git2::Config, mut f: F)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

clone_repoMethod · 0.85
fetchMethod · 0.85
fetch_remoteMethod · 0.85

Calls 2

configMethod · 0.80
to_stringMethod · 0.80

Tested by

no test coverage detected