NewCommit returns a new Commit.
( moduleKey ModuleKey, getCreateTime func() (time.Time, error), options ...CommitOption, )
| 31 | |
| 32 | // NewCommit returns a new Commit. |
| 33 | func NewCommit( |
| 34 | moduleKey ModuleKey, |
| 35 | getCreateTime func() (time.Time, error), |
| 36 | options ...CommitOption, |
| 37 | ) Commit { |
| 38 | return newCommit( |
| 39 | moduleKey, |
| 40 | getCreateTime, |
| 41 | options..., |
| 42 | ) |
| 43 | } |
| 44 | |
| 45 | // CommitOption is an option for a new Commit. |
| 46 | type CommitOption func(*commitOptions) |
no test coverage detected
searching dependent graphs…