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

Function checkIfClean

packages/release-utils/src/gitUtils.ts:68–73  ·  view source on GitHub ↗
(cwd: string)

Source from the content-addressed store, hash-verified

66};
67
68export const checkIfClean = async (cwd: string): Promise<boolean> => {
69 const { stdout } = await execWithOutput("git", ["status", "--porcelain"], {
70 cwd,
71 });
72 return !stdout.length;
73};

Callers

nothing calls this directly

Calls 1

execWithOutputFunction · 0.90

Tested by

no test coverage detected