mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-31 23:19:40 +02:00
handle comments in todo files
This commit is contained in:
parent
1d6eb015c1
commit
b97f844a3e
@ -215,6 +215,9 @@ func (c *CommitListBuilder) getInteractiveRebasingCommits() ([]*Commit, error) {
|
|||||||
if line == "" || line == "noop" {
|
if line == "" || line == "noop" {
|
||||||
return commits, nil
|
return commits, nil
|
||||||
}
|
}
|
||||||
|
if strings.HasPrefix("#", line) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
splitLine := strings.Split(line, " ")
|
splitLine := strings.Split(line, " ")
|
||||||
commits = append([]*Commit{{
|
commits = append([]*Commit{{
|
||||||
Sha: splitLine[1],
|
Sha: splitLine[1],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user