MCPcopy Index your code
hub / github.com/dmno-dev/bumpy / commitFiles

Function commitFiles

packages/bumpy/src/core/git.ts:118–124  ·  view source on GitHub ↗
(files: string[], message: string, opts?: { cwd?: string })

Source from the content-addressed store, hash-verified

116
117/** Stage files and create a commit */
118export function commitFiles(files: string[], message: string, opts?: { cwd?: string }): void {
119 for (const file of files) {
120 // Use -- to prevent filenames from being interpreted as flags
121 runArgs(['git', 'add', '--', file], opts);
122 }
123 runArgs(['git', 'commit', '-F', '-'], { ...opts, input: message });
124}
125
126/** Check if a tag already exists */
127export function tagExists(tag: string, opts?: { cwd?: string }): boolean {

Callers 1

git.test.tsFile · 0.90

Calls 1

runArgsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…