diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-24 12:46:39 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-24 12:46:39 +0200 |
commit | c3a5213f829444452e1971822529a57da613831d (patch) | |
tree | cc5aa403b75428e9ebbde1e0bf62e55eec25a11d /repository/repo.go | |
parent | 921cd18cf98ecfc1f7fa82f57d64f1b1f9077e64 (diff) | |
download | git-bug-c3a5213f829444452e1971822529a57da613831d.tar.gz |
repo: more documentation
Diffstat (limited to 'repository/repo.go')
-rw-r--r-- | repository/repo.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/repository/repo.go b/repository/repo.go index 053837db..0cddf38a 100644 --- a/repository/repo.go +++ b/repository/repo.go @@ -76,16 +76,24 @@ type Repo interface { type ClockedRepo interface { Repo + // LoadClocks read the clocks values from the on-disk repo LoadClocks() error + // WriteClocks write the clocks values into the repo WriteClocks() error + // CreateTimeIncrement increment the creation clock and return the new value. CreateTimeIncrement() (lamport.Time, error) + // EditTimeIncrement increment the edit clock and return the new value. EditTimeIncrement() (lamport.Time, error) + // CreateWitness witness another create time and increment the corresponding + // clock if needed. CreateWitness(time lamport.Time) error + // EditWitness witness another edition time and increment the corresponding + // clock if needed. EditWitness(time lamport.Time) error } |