MCPcopy Index your code
hub / github.com/nikivdev/go / gitWorkingTreeDirty

Function gitWorkingTreeDirty

cli/flow/main.go:4346–4352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4344}
4345
4346func gitWorkingTreeDirty() (bool, error) {
4347 out, err := exec.Command("git", "status", "--porcelain").Output()
4348 if err != nil {
4349 return false, fmt.Errorf("git status --porcelain: %w", err)
4350 }
4351 return strings.TrimSpace(string(out)) != "", nil
4352}
4353
4354func runGitCheckout(ctx *snap.Context) error {
4355 if ctx.NArgs() > 1 {

Callers 1

runGitMirrorTakeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected