MCPcopy
hub / github.com/cli/cli / IsDirty

Method IsDirty

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

Source from the content-addressed store, hash-verified

77}
78
79func (g *gitExecuter) IsDirty() (bool, error) {
80 changeCount, err := g.client.UncommittedChangeCount(context.Background())
81 if err != nil {
82 return false, err
83 }
84 return changeCount != 0, nil
85}
86
87func (g *gitExecuter) MergeFastForward(ref string) error {
88 args := []string{"merge", "--ff-only", "--quiet", ref}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected