summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-04-22 11:15:41 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-04-22 11:15:41 +1000
commitb97f844a3e63fd4cb5973aa374e358ce83611b37 (patch)
treea842157ff033d33af7d3ca55df6a125416970471
parent1d6eb015c1a9e852e16ef557edcdc5d10c69bc0b (diff)
handle comments in todo filesv0.20.1
-rw-r--r--pkg/commands/commit_list_builder.go3
1 files changed, 3 insertions, 0 deletions
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],