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

Method GetOrCreateClock

repository/repo.go:203–203  ·  view source on GitHub ↗

GetOrCreateClock return a Lamport clock stored in the Repo. If the clock doesn't exist, it's created.

(name string)

Source from the content-addressed store, hash-verified

201 // GetOrCreateClock return a Lamport clock stored in the Repo.
202 // If the clock doesn't exist, it's created.
203 GetOrCreateClock(name string) (lamport.Clock, error)
204
205 // Increment is equivalent to c = GetOrCreateClock(name) + c.Increment()
206 Increment(name string) (lamport.Time, error)

Callers 2

RepoClockTestFunction · 0.65
makeIdentityTestRepoFunction · 0.65

Implementers 2

mockRepoClockrepository/mock_repo.go
GoGitReporepository/gogit.go

Calls

no outgoing calls

Tested by 1

makeIdentityTestRepoFunction · 0.52