aboutsummaryrefslogtreecommitdiffstats
path: root/cache
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-02-23 13:01:46 +0100
committerMichael Muré <batolettre@gmail.com>2019-03-01 22:40:28 +0100
commitb8caddddc7aaf34b2da61c590fd1d9a0fae024fb (patch)
tree05871cd66dd4ae9a02f4221b6a8c235931e93074 /cache
parent719303226096c905e602cb620dfdfbcf8fe106ad (diff)
downloadgit-bug-b8caddddc7aaf34b2da61c590fd1d9a0fae024fb.tar.gz
identity: some UX cleanup
Diffstat (limited to 'cache')
-rw-r--r--cache/bug_excerpt.go10
-rw-r--r--cache/filter.go2
2 files changed, 6 insertions, 6 deletions
diff --git a/cache/bug_excerpt.go b/cache/bug_excerpt.go
index e39c8310..55518077 100644
--- a/cache/bug_excerpt.go
+++ b/cache/bug_excerpt.go
@@ -8,6 +8,11 @@ import (
"github.com/MichaelMure/git-bug/util/lamport"
)
+// Package initialisation used to register the type for (de)serialization
+func init() {
+ gob.Register(BugExcerpt{})
+}
+
// BugExcerpt hold a subset of the bug values to be able to sort and filter bugs
// efficiently without having to read and compile each raw bugs.
type BugExcerpt struct {
@@ -63,11 +68,6 @@ func NewBugExcerpt(b bug.Interface, snap *bug.Snapshot) *BugExcerpt {
return e
}
-// Package initialisation used to register the type for (de)serialization
-func init() {
- gob.Register(BugExcerpt{})
-}
-
/*
* Sorting
*/
diff --git a/cache/filter.go b/cache/filter.go
index 3cbc132a..022a8ff2 100644
--- a/cache/filter.go
+++ b/cache/filter.go
@@ -6,7 +6,7 @@ import (
"github.com/MichaelMure/git-bug/bug"
)
-// Filter is a functor that match a subset of bugs
+// Filter is a predicate that match a subset of bugs
type Filter func(repoCache *RepoCache, excerpt *BugExcerpt) bool
// StatusFilter return a Filter that match a bug status