1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-10 04:07:18 +02:00
lazygit/pkg/gui/controllers/helpers
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
..
amend_helper.go
app_status_helper.go Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
bisect_helper.go
branches_helper.go Allow deleting remote tags/branches from local tag/branch views (#2738) 2023-08-10 17:39:26 +10:00
cherry_pick_helper.go Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
commits_helper.go Add key binding for switching from the commit message panel to an editor 2023-08-21 10:03:34 +02:00
confirmation_helper.go Fix confirmation view sizing 2023-08-05 16:09:02 +10:00
credentials_helper.go Handle pending actions properly in git commands that require credentials 2023-07-08 22:54:52 +10:00
diff_helper.go Move IgnoreWhitespaceInDiffView to AppState, and persist it when it changes 2023-07-31 11:41:55 +02:00
files_helper.go use 'suspend' instead of 'editInTerminal' internally 2023-08-09 22:03:58 +10:00
gpg_helper.go Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
helpers.go Extract a SubCommitsHelper from SwitchToSubCommitsController 2023-08-29 08:16:40 +02:00
host_helper.go
merge_and_rebase_helper.go Select same commit again after pressing "e" to edit a commit 2023-08-22 14:08:12 +02:00
merge_conflicts_helper.go Fix race condition 2023-05-16 21:01:38 +10:00
mode_helper.go Add a "Mark commit as base commit for rebase" command 2023-07-31 08:41:41 +02:00
patch_building_helper.go Disregard the "ignore whitespace" option in the patch building panel 2023-05-19 18:22:28 +02:00
record_directory_helper.go
refresh_helper.go Add "Show divergence from upstream" entry to Upstream menu in branches panel 2023-08-29 08:16:40 +02:00
refs_helper.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
repos_helper.go Support bare worktrees where worktree does not have its own .git file 2023-08-07 22:40:53 +10:00
search_helper.go Add integration tests for searching/filtering 2023-07-03 12:54:14 +10:00
snake_helper.go
staging_helper.go
sub_commits_helper.go Add "Show divergence from upstream" entry to Upstream menu in branches panel 2023-08-29 08:16:40 +02:00
suggestions_helper.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
tags_helper.go Allow force-tagging if tag exists 2023-07-31 11:38:52 +02:00
update_helper.go Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
upstream_helper_test.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
upstream_helper.go
view_helper.go
window_arrangement_helper.go Add demo test variant 2023-07-31 22:33:04 +10:00
window_helper.go
working_tree_helper.go Extract a WithEnsureCommitableFiles function 2023-08-29 09:10:59 +02:00
worktree_helper.go Use fields rather than methods on worktrees 2023-07-30 18:35:24 +10:00