MCPcopy Create free account
hub / github.com/AIScientists-Dev/Flowtrace / init

Function init

crates/flowtrace-cli/src/git.rs:104–107  ·  view source on GitHub ↗

`git init` in `root`. Idempotent — re-init on an existing repo is a no-op.

(root: &Path)

Source from the content-addressed store, hash-verified

102
103/// `git init` in `root`. Idempotent — re-init on an existing repo is a no-op.
104pub fn init(root: &Path) -> Result<()> {
105 let _ = open_or_init(root)?;
106 Ok(())
107}
108
109/// Stage exactly the listed trace-relative paths and commit. Replaces the
110/// `add -A` sweep with an explicit declaration of what this commit contains.

Callers 10

cmd_initFunction · 0.85
cmd_runFunction · 0.85
open_or_initFunction · 0.85
init_asyncFunction · 0.85
init_is_idempotentFunction · 0.85

Calls 1

open_or_initFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…