MCPcopy Create free account
hub / github.com/driangle/taskmd / IsEmpty

Method IsEmpty

apps/cli/internal/cli/commit_msg.go:340–343  ·  view source on GitHub ↗

IsEmpty returns true if no changes were detected.

()

Source from the content-addressed store, hash-verified

338
339// IsEmpty returns true if no changes were detected.
340func (d DiffResult) IsEmpty() bool {
341 return len(d.Completed) == 0 && len(d.Added) == 0 && len(d.Started) == 0 &&
342 len(d.Blocked) == 0 && len(d.Cancelled) == 0
343}
344
345// parseDiffResult parses unified diff output and categorizes files by their
346// status change. New files (--- /dev/null) with +status: pending are "Added";

Callers 2

runCommitMsgFunction · 0.45
findTaskChangesFromDiffFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected