diff options
Diffstat (limited to 'bug/clocks.go')
-rw-r--r-- | bug/clocks.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bug/clocks.go b/bug/clocks.go new file mode 100644 index 00000000..7b254746 --- /dev/null +++ b/bug/clocks.go @@ -0,0 +1,18 @@ +package bug + +import ( + "github.com/MichaelMure/git-bug/repository" +) + +func Witnesser(repo *repository.GitRepo) error { + for b := range ReadAllLocalBugs(repo) { + if b.Err != nil { + return b.Err + } + + repo.CreateWitness(b.Bug.createTime) + repo.EditWitness(b.Bug.editTime) + } + + return nil +} |