From b97f844a3e63fd4cb5973aa374e358ce83611b37 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Wed, 22 Apr 2020 11:15:41 +1000 Subject: [PATCH] handle comments in todo files --- pkg/commands/commit_list_builder.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/commands/commit_list_builder.go b/pkg/commands/commit_list_builder.go index f4bbc9ddc..0038d169b 100644 --- a/pkg/commands/commit_list_builder.go +++ b/pkg/commands/commit_list_builder.go @@ -215,6 +215,9 @@ func (c *CommitListBuilder) getInteractiveRebasingCommits() ([]*Commit, error) { if line == "" || line == "noop" { return commits, nil } + if strings.HasPrefix("#", line) { + continue + } splitLine := strings.Split(line, " ") commits = append([]*Commit{{ Sha: splitLine[1],