diff options
author | Michael Muré <batolettre@gmail.com> | 2020-09-16 16:22:02 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-10-04 20:39:10 +0200 |
commit | ca720f165cb286d4372ad48595e532a2423f2f07 (patch) | |
tree | 6e1496a1a6603abbd473cc0060a5acebc763a68b /bug/clocks.go | |
parent | d56ce3d5d9f5ef74201a8ee7c25be4820d435b47 (diff) | |
download | git-bug-ca720f165cb286d4372ad48595e532a2423f2f07.tar.gz |
cache,bug,identity: structural change
- bug doesn't commit identities anymore, only make sure they are commit
- cache use an IdentityResolver to load bugs with identities from the cache (deps injection)
- IdentityCache now are identity.Interface
Diffstat (limited to 'bug/clocks.go')
-rw-r--r-- | bug/clocks.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bug/clocks.go b/bug/clocks.go index ba93e0dc..58fce923 100644 --- a/bug/clocks.go +++ b/bug/clocks.go @@ -1,6 +1,7 @@ package bug import ( + "github.com/MichaelMure/git-bug/identity" "github.com/MichaelMure/git-bug/repository" ) @@ -8,7 +9,9 @@ import ( var ClockLoader = repository.ClockLoader{ Clocks: []string{creationClockName, editClockName}, Witnesser: func(repo repository.ClockedRepo) error { - for b := range ReadAllLocalBugs(repo) { + // We don't care about the actual identity so an IdentityStub will do + resolver := identity.NewStubResolver() + for b := range ReadAllLocalWithResolver(repo, resolver) { if b.Err != nil { return b.Err } |