MCPcopy
hub / github.com/di-sukharev/opencommit / gitAdd

Function gitAdd

out/cli.cjs:85695–85701  ·  view source on GitHub ↗
({ files })

Source from the content-addressed store, hash-verified

85693 ["ls-files", "--others", "--exclude-standard"],
85694 { cwd: gitDir }
85695 );
85696 const files = [...modified.split("\n"), ...others.split("\n")].filter(
85697 (file) => !!file
85698 );
85699 return files.sort();
85700};
85701var gitAdd = async ({ files }) => {
85702 const gitDir = await getGitDir();
85703 const gitAddSpinner = le();
85704 gitAddSpinner.start("Adding files to commit");

Callers 2

commitFunction · 0.70
prepareCommitMessageHookFunction · 0.70

Calls 3

execaFunction · 0.85
getGitDirFunction · 0.70
startMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…