MCPcopy Create free account
hub / github.com/cli/cli / IsDirty

Method IsDirty

pkg/cmd/repo/sync/git.go:86–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84}
85
86func (g *gitExecuter) IsDirty() (bool, error) {
87 changeCount, err := g.client.UncommittedChangeCount(context.Background())
88 if err != nil {
89 return false, err
90 }
91 return changeCount != 0, nil
92}
93
94func (g *gitExecuter) MergeFastForward(ref string) error {
95 args := []string{"merge", "--ff-only", "--quiet", ref}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected