MCPcopy Create free account
hub / github.com/brocode/fw / agent_callbacks

Function agent_callbacks

src/git/mod.rs:31–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31fn agent_callbacks() -> git2::RemoteCallbacks<'static> {
32 let mut remote_callbacks = RemoteCallbacks::new();
33 remote_callbacks.credentials(move |_url, username_from_url, _allowed_types| git2::Cred::ssh_key_from_agent(username_from_url.unwrap_or("git")));
34 remote_callbacks
35}
36
37fn agent_fetch_options() -> git2::FetchOptions<'static> {
38 let remote_callbacks = agent_callbacks();

Callers 2

agent_fetch_optionsFunction · 0.85
update_remoteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected