MCPcopy Create free account
hub / github.com/ForgeAILab/forge / fetch

Function fetch

crates/git/src/lib.rs:389–393  ·  view source on GitHub ↗

Fetch from a remote (defaults to "origin").

(repo_path: &Path, remote: Option<&str>)

Source from the content-addressed store, hash-verified

387
388/// Fetch from a remote (defaults to "origin").
389pub async fn fetch(repo_path: &Path, remote: Option<&str>) -> Result<()> {
390 let remote = remote.unwrap_or("origin");
391 run_git(repo_path, &["fetch", remote]).await?;
392 Ok(())
393}
394
395/// Fetch a specific branch from a remote.
396pub async fn fetch_branch(repo_path: &Path, remote: &str, branch: &str) -> Result<()> {

Callers 3

refreshAccessFunction · 0.85
apiResponseFunction · 0.85
authFetchFunction · 0.85

Calls 1

run_gitFunction · 0.70

Tested by

no test coverage detected