1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-24 05:36:19 +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" {
return commits, nil
}
if strings.HasPrefix("#", line) {
if strings.HasPrefix(line, "#") {
continue
}
splitLine := strings.Split(line, " ")
@ -227,7 +227,7 @@ func (c *CommitListBuilder) getInteractiveRebasingCommits() ([]*Commit, error) {
}}, commits...)
}
return nil, nil
return commits, nil
}
// assuming the file starts like this: