diff options
author | Michael Muré <batolettre@gmail.com> | 2018-12-25 16:35:37 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-12-25 16:35:37 +0100 |
commit | 96f514168f17136fe02519ab4599a407cd0cc5cb (patch) | |
tree | 28ed1a2455ab1e74f5b0f5ab9a5081d90c7bdc3f /repository/repo.go | |
parent | 8a6a8055d723e523d9943244b042c778d75b02cc (diff) | |
download | git-bug-96f514168f17136fe02519ab4599a407cd0cc5cb.tar.gz |
repo: minor cleaning
Diffstat (limited to 'repository/repo.go')
-rw-r--r-- | repository/repo.go | 4 |
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 |