MCPcopy Create free account
hub / github.com/git-bug/git-bug / NeedCommit

Method NeedCommit

entity/dag/entity.go:432–434  ·  view source on GitHub ↗

NeedCommit indicate if the in-memory state changed and need to be commit in the repository

()

Source from the content-addressed store, hash-verified

430
431// NeedCommit indicate if the in-memory state changed and need to be commit in the repository
432func (e *Entity) NeedCommit() bool {
433 return len(e.staging) > 0
434}
435
436// CommitAsNeeded execute a Commit only if necessary. This function is useful to avoid getting an error if the Entity
437// is already in sync with the repository.

Callers 2

CommitAsNeededMethod · 0.95
CommitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected