MCPcopy Index your code
hub / github.com/cli/cli / hasUnsavedChanges

Method hasUnsavedChanges

pkg/cmd/codespace/common.go:225–227  ·  view source on GitHub ↗

hasUnsavedChanges returns whether the environment has unsaved changes.

()

Source from the content-addressed store, hash-verified

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

Callers 2

branchWithGitStatusMethod · 0.95
confirmDeletionFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected