diff options
author | Jakob Kogler <jakob.kogler@gmail.com> | 2021-12-05 22:33:07 +0100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-07 11:01:42 +1100 |
commit | beedc2553d7b17ca8ac2827965980a2a6bd9fafb (patch) | |
tree | 7ca9bfd888b052ee2414f6527b6bae208ea7f217 /pkg/gui/gui.go | |
parent | 0d3e5e6a1dc7d131cd714a260b4f365380a033c6 (diff) |
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).
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r-- | pkg/gui/gui.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 9b4279f29..08960ff16 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -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 |