jesseduffield.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
..
app Support bare worktrees where worktree does not have its own .git file 2023-08-07 22:40:53 +10:00
cheatsheet Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
commands Add "Show divergence from upstream" entry to Upstream menu in branches panel 2023-08-29 08:16:40 +02:00
common Write unit tests with the help of afero 2023-07-30 18:35:36 +10:00
config Support custom keybindings for confirm discard 2023-08-25 08:50:05 -05:00
constants update release notes 2021-04-20 18:34:47 +10:00
env Support bare worktrees where worktree does not have its own .git file 2023-08-07 22:40:53 +10:00
fakes cleanup integration test code 2023-02-26 12:54:13 +11:00
gui Extract a WithEnsureCommitableFiles function 2023-08-29 09:10:59 +02:00
i18n Add "Show divergence from upstream" entry to Upstream menu in branches panel 2023-08-29 08:16:40 +02:00
integration Add integration test for the new divergence log 2023-08-29 08:16:40 +02:00
logs Remove secureexec package 2023-07-30 19:59:51 +10:00
snake integrate snake game into lazygit 2022-12-30 12:18:59 +11:00
tasks Remove secureexec package 2023-07-30 19:59:51 +10:00
theme Add a "Mark commit as base commit for rebase" command 2023-07-31 08:41:41 +02:00
updates Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
utils Make columnPositions include entries for removed columns 2023-08-28 14:21:06 +02:00