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

Method Witness

repository/gogit.go:910–916  ·  view source on GitHub ↗

Witness is equivalent to c = GetOrCreateClock(name) + c.Witness(time)

(name string, time lamport.Time)

Source from the content-addressed store, hash-verified

908
909// Witness is equivalent to c = GetOrCreateClock(name) + c.Witness(time)
910func (repo *GoGitRepo) Witness(name string, time lamport.Time) error {
911 c, err := repo.GetOrCreateClock(name)
912 if err != nil {
913 return err
914 }
915 return c.Witness(time)
916}
917
918// AddRemote add a new remote to the repository
919// Not in the interface because it's only used for testing

Callers

nothing calls this directly

Calls 2

GetOrCreateClockMethod · 0.95
WitnessMethod · 0.65

Tested by

no test coverage detected