mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-14 17:51:44 +03:00
19 lines
293 B
Go
19 lines
293 B
Go
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
|
|
}
|