MCPcopy Create free account
hub / github.com/anomalyco/opencode / branchIsDirty

Function branchIsDirty

github/index.ts:761–765  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

759}
760
761async function branchIsDirty() {
762 console.log("Checking if branch is dirty...")
763 const ret = await $`git status --porcelain`
764 return ret.stdout.toString().trim().length > 0
765}
766
767async function assertPermissions() {
768 const { actor, repo } = useContext()

Callers 1

index.tsFile · 0.70

Calls 1

logMethod · 0.45

Tested by

no test coverage detected