NeedCommit indicate if the in-memory state changed and need to be commit in the repository
()
| 430 | |
| 431 | // NeedCommit indicate if the in-memory state changed and need to be commit in the repository |
| 432 | func (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. |
no outgoing calls
no test coverage detected