MCPcopy Create free account
hub / github.com/6pac/SlickGrid / gitAdd

Function gitAdd

scripts/git-utils.mjs:8–11  ·  view source on GitHub ↗
(files, { cwd, dryRun })

Source from the content-addressed store, hash-verified

6 * @returns {Promise<any>}
7 */
8export async function gitAdd(files, { cwd, dryRun }) {
9 const execArgs = files ? ['add', '--', ...files] : ['add', '.'];
10 return execAsyncPiped('git', execArgs, { cwd }, dryRun);
11}
12
13/**
14 * @param {String} commitMsg

Callers 1

release.mjsFile · 0.90

Calls 1

execAsyncPipedFunction · 0.90

Tested by

no test coverage detected