1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

[SQUASHED] fixup-upwards

This commit is contained in:
Stefan Haller
2025-05-11 14:03:40 +02:00
parent 5d30409f33
commit 9caed72fc9
9 changed files with 63 additions and 33 deletions

View File

@ -19,6 +19,7 @@ type Todo struct {
type TodoChange struct {
Hash string
NewAction todo.TodoCommand
NewFlag string
}
// Read a git-rebase-todo file, change the actions for the given commits,
@ -37,6 +38,7 @@ func EditRebaseTodo(filePath string, changes []TodoChange, commentChar byte) err
if equalHash(t.Commit, change.Hash) {
matchCount++
t.Command = change.NewAction
t.Flag = change.NewFlag
}
}
}