aboutsummaryrefslogtreecommitdiffstats
path: root/bug/clocks.go
blob: 7b2547468b63459a67a98fb73f44581adf0d457f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
}