From 011714eb3ba993ab8f5c07954a5266ecca150be5 Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Wed, 15 Feb 2023 23:52:14 -0800 Subject: [PATCH] update to fix commitlog message --- cmd/cli/cli.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/cli/cli.go b/cmd/cli/cli.go index f079302..9da1df7 100644 --- a/cmd/cli/cli.go +++ b/cmd/cli/cli.go @@ -70,7 +70,7 @@ func initialModel() (model, error) { if err != nil { return m, err } - // m.CommitLogModel, err = NewCommitLog() + m.CommitLogModel, err = NewCommitLog() if err != nil { return m, err } @@ -109,7 +109,11 @@ func (m CommitLog) Update(msg tea.Msg) (tea.Model, tea.Cmd) { m.Selected-- } default: - // m.Commits = commits.CommitSet + mr := commits.RepoSet(m.Repos) + cis, err := mr.GetRepoCommits(m.Year, m.Authors) + if err != nil { + m.Commits = cis + } } } return m, nil