Files
lazygit/pkg
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
..
2021-04-20 18:34:47 +10:00
2023-02-26 12:54:13 +11:00
2023-07-30 19:59:51 +10:00
2022-12-30 12:18:59 +11:00
2023-07-30 19:59:51 +10:00