aboutsummaryrefslogtreecommitdiffstats
path: root/repository/repo.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-08-06 20:31:20 +0200
committerMichael Muré <batolettre@gmail.com>2018-08-06 20:31:20 +0200
commit435be2b693aee89ed34a2d1e7291b3b141b19717 (patch)
tree89244a9dcb995c27002995e9f25f9be631101713 /repository/repo.go
parent593891b8e01fd89866b30854a60aece1dad5f6ab (diff)
downloadgit-bug-435be2b693aee89ed34a2d1e7291b3b141b19717.tar.gz
bug: add a Lamport logical clock to be able to sort bugs by creation time and edit time without having to rely on a timestamp
Diffstat (limited to 'repository/repo.go')
-rw-r--r--repository/repo.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/repository/repo.go b/repository/repo.go
index 38d8a6cb..057223ad 100644
--- a/repository/repo.go
+++ b/repository/repo.go
@@ -69,6 +69,18 @@ type Repo interface {
// Return the git tree hash referenced in a commit
GetTreeHash(commit util.Hash) (util.Hash, error)
+
+ LoadClocks() error
+
+ WriteClocks() error
+
+ CreateTimeIncrement() (util.LamportTime, error)
+
+ EditTimeIncrement() (util.LamportTime, error)
+
+ CreateWitness(time util.LamportTime) error
+
+ EditWitness(time util.LamportTime) error
}
func prepareTreeEntries(entries []TreeEntry) bytes.Buffer {