1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-26 05:37:18 +02:00

totally screwed up the last commit

This commit is contained in:
Jesse Duffield 2020-04-22 11:21:20 +10:00
parent b97f844a3e
commit cc13ae252a

View File

@ -215,7 +215,7 @@ func (c *CommitListBuilder) getInteractiveRebasingCommits() ([]*Commit, error) {
if line == "" || line == "noop" { if line == "" || line == "noop" {
return commits, nil return commits, nil
} }
if strings.HasPrefix("#", line) { if strings.HasPrefix(line, "#") {
continue continue
} }
splitLine := strings.Split(line, " ") splitLine := strings.Split(line, " ")
@ -227,7 +227,7 @@ func (c *CommitListBuilder) getInteractiveRebasingCommits() ([]*Commit, error) {
}}, commits...) }}, commits...)
} }
return nil, nil return commits, nil
} }
// assuming the file starts like this: // assuming the file starts like this: