MCPcopy Create free account
hub / github.com/bufbuild/buf / NewCommit

Function NewCommit

private/bufpkg/bufmodule/commit.go:33–43  ·  view source on GitHub ↗

NewCommit returns a new Commit.

(
	moduleKey ModuleKey,
	getCreateTime func() (time.Time, error),
	options ...CommitOption,
)

Source from the content-addressed store, hash-verified

31
32// NewCommit returns a new Commit.
33func 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.
46type CommitOption func(*commitOptions)

Calls 1

newCommitFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…