aboutsummaryrefslogtreecommitdiffstats
path: root/repository/repo.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-12-25 16:35:37 +0100
committerMichael Muré <batolettre@gmail.com>2018-12-25 16:35:37 +0100
commit96f514168f17136fe02519ab4599a407cd0cc5cb (patch)
tree28ed1a2455ab1e74f5b0f5ab9a5081d90c7bdc3f /repository/repo.go
parent8a6a8055d723e523d9943244b042c778d75b02cc (diff)
downloadgit-bug-96f514168f17136fe02519ab4599a407cd0cc5cb.tar.gz
repo: minor cleaning
Diffstat (limited to 'repository/repo.go')
-rw-r--r--repository/repo.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/repository/repo.go b/repository/repo.go
index d0004c8b..3ae09057 100644
--- a/repository/repo.go
+++ b/repository/repo.go
@@ -107,6 +107,10 @@ type ClockedRepo interface {
EditWitness(time lamport.Time) error
}
+// Witnesser is a function that will initialize the clocks of a repo
+// from scratch
+type Witnesser func(repo ClockedRepo) error
+
func prepareTreeEntries(entries []TreeEntry) bytes.Buffer {
var buffer bytes.Buffer