MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / create

Function create

flow-quickstart/src/git.rs:101–106  ·  view source on GitHub ↗
(project_dir: &Path, config: GitConfig)

Source from the content-addressed store, hash-verified

99}
100
101pub fn create(project_dir: &Path, config: GitConfig) -> Result<String> {
102 info!("fetching remote template, please wait...");
103 let branch = git_clone_all(project_dir, config)?;
104 remove_history(project_dir, None)?;
105 Ok(branch)
106}
107
108fn canonicalize_path(p: &Path) -> Result<PathBuf> {
109 let p = if p.to_str().unwrap().starts_with("~/") {

Callers 7

create_with_typeFunction · 0.85
dumpFunction · 0.85
test_basisFunction · 0.85
test_cyclicFunction · 0.85
test_templateFunction · 0.85

Calls 2

git_clone_allFunction · 0.85
remove_historyFunction · 0.85

Tested by 3

test_basisFunction · 0.68
test_cyclicFunction · 0.68
test_templateFunction · 0.68