MCPcopy Index your code
hub / github.com/changesets/changesets / commitAll

Function commitAll

packages/release-utils/src/gitUtils.ts:61–66  ·  view source on GitHub ↗
(message: string, cwd: string)

Source from the content-addressed store, hash-verified

59};
60
61export const commitAll = async (message: string, cwd: string) => {
62 await execWithOutput("git", ["add", "."], {
63 cwd,
64 });
65 await execWithOutput("git", ["commit", "-m", message], { cwd });
66};
67
68export const checkIfClean = async (cwd: string): Promise<boolean> => {
69 const { stdout } = await execWithOutput("git", ["status", "--porcelain"], {

Callers

nothing calls this directly

Calls 1

execWithOutputFunction · 0.90

Tested by

no test coverage detected