1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

remember the message if commit fails

In case a commit fails, e.g. because a pre-commit hook returns an error,
lazygit will now remember the commit message and will suggest it during
the next commit (e.g. after fixing the error of the pre-commit hook).
This commit is contained in:
Jakob Kogler
2021-12-05 22:33:07 +01:00
committed by Jesse Duffield
parent 0d3e5e6a1d
commit beedc2553d
3 changed files with 22 additions and 11 deletions

View File

@ -346,6 +346,9 @@ type guiState struct {
// for displaying suggestions while typing in a file name
FilesTrie *patricia.Trie
// this is the message of the last failed commit attempt
messageFailedCommit string
}
// reuseState determines if we pull the repo state from our repo state map or