1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-26 05:37:18 +02:00
lazygit/pkg/gui/controllers
Stefan Haller f561007fb7 Extract a WithEnsureCommitableFiles function
This encapsulates the logic to make sure we have something to commit; which is
to
- auto-stage all files if no files are staged and the SkipNoStagedFilesWarning
config is on
- otherwise, prompt the user whether they want to stage all files
- error out if we don't have any files at all

Of these, the first one was only done when committing with the built-in commit
message panel; there's no reason why it shouldn't also be done when committing
with the editor, or when amending, and now it is.
2023-08-29 09:10:59 +02:00
..
2023-04-30 13:19:52 +10:00
2023-04-30 13:19:52 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-06-28 18:54:21 +06:00
2023-07-20 21:05:52 +10:00
2023-07-30 18:35:23 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2022-04-02 17:04:42 +11:00
2023-04-30 13:19:53 +10:00