MCPcopy Index your code
hub / github.com/alt-art/commit / git_add_all_modified

Function git_add_all_modified

src/commit.rs:91–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89}
90
91pub fn git_add_all_modified() -> Result<()> {
92 let output = git_exec(&["add", "-u"])?;
93 std::io::stdout().write_all(&output.stdout)?;
94 std::io::stderr().write_all(&output.stderr)?;
95
96 if !output.status.success() {
97 return Err(anyhow!("Could not add files to staged area"));
98 }
99
100 Ok(())
101}

Callers 1

mainFunction · 0.85

Calls 1

git_execFunction · 0.85

Tested by

no test coverage detected