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

Method hasUnsavedChanges

pkg/cmd/codespace/common.go:226–228  ·  view source on GitHub ↗

hasUnsavedChanges returns whether the environment has unsaved changes.

()

Source from the content-addressed store, hash-verified

224// hasUnsavedChanges returns whether the environment has
225// unsaved changes.
226func (c codespace) hasUnsavedChanges() bool {
227 return c.GitStatus.HasUncommittedChanges || c.GitStatus.HasUnpushedChanges
228}
229
230// running returns whether the codespace environment is running.
231func (c codespace) running() bool {

Callers 2

branchWithGitStatusMethod · 0.95
confirmDeletionFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected