MCPcopy Create free account
hub / github.com/formkit/formkit / checkGitCleanWorkingDirectory

Function checkGitCleanWorkingDirectory

scripts/utils.mjs:346–350  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

344 * Returns true if the current git working directory is clean
345 */
346export function checkGitCleanWorkingDirectory() {
347 return !execSync(`git status --untracked-files=no --porcelain`, {
348 encoding: 'utf-8',
349 })
350}
351
352/**
353 * Returns true if the current git branch is master

Callers 2

publishPackagesFunction · 0.90
publishPackagesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected