Witness is equivalent to c = GetOrCreateClock(name) + c.Witness(time)
(name string, time lamport.Time)
| 908 | |
| 909 | // Witness is equivalent to c = GetOrCreateClock(name) + c.Witness(time) |
| 910 | func (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 |
nothing calls this directly
no test coverage detected