aboutsummaryrefslogtreecommitdiffstats
path: root/cache/bug_excerpt.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-03-03 15:27:29 +0100
committerGitHub <noreply@github.com>2019-03-03 15:27:29 +0100
commitfe8b0659c9bc1cb074a5acfbafcabd603e533f9f (patch)
treeb3d8db1596b7347fdcf39cfdc9614a3c09464b36 /cache/bug_excerpt.go
parent7260ca05bc3588c0572887a7d8f1b897c7fc13da (diff)
parent408654514ea813933f45d383d949611d138084e1 (diff)
downloadgit-bug-fe8b0659c9bc1cb074a5acfbafcabd603e533f9f.tar.gz
Merge pull request #100 from sladyn98/faster_ls
`git bug ls` should be faster
Diffstat (limited to 'cache/bug_excerpt.go')
-rw-r--r--cache/bug_excerpt.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/cache/bug_excerpt.go b/cache/bug_excerpt.go
index fd06e51b..a50d8c66 100644
--- a/cache/bug_excerpt.go
+++ b/cache/bug_excerpt.go
@@ -23,8 +23,10 @@ type BugExcerpt struct {
CreateUnixTime int64
EditUnixTime int64
- Status bug.Status
- Labels []bug.Label
+ Status bug.Status
+ Labels []bug.Label
+ Title string
+ LenComments int
// If author is identity.Bare, LegacyAuthor is set
// If author is identity.Identity, AuthorId is set and data is deported
@@ -50,6 +52,8 @@ func NewBugExcerpt(b bug.Interface, snap *bug.Snapshot) *BugExcerpt {
EditUnixTime: snap.LastEditUnix(),
Status: snap.Status,
Labels: snap.Labels,
+ Title: snap.Title,
+ LenComments: len(snap.Comments),
CreateMetadata: b.FirstOp().AllMetadata(),
}