jesseduffield.lazygit/pkg/gui/controllers/helpers
Jesse Duffield a2a8755a7c Add commit store
I want an efficient way to get information about the commits of a repo.
So far, our Commit model contains a mix of immutable and mutable fields, and this means we need to throw out
commits whenever we refresh, because one of the mutable fields may have changed.

The commit store will store a new model, ImmutableCommit which never changes so we can just continue adding
commits to the store without worrying about invalidating any of it.

One use case for this store is the ability to determine if one commit is an ancestor of another, which will
help us colour the commits against each of our branches in the local branches view. Without an in-memory
store, we would need to make one git call per commit which would be super slow.

If this store proves useful, we could switch to using it as the source of truth for our commits, with
mutable stuff handled separately.
2023-10-02 16:25:15 +11:00
..
amend_helper.go standardise helper args 2023-04-30 13:19:53 +10:00
app_status_helper.go lots of changes 2023-04-30 13:19:53 +10:00
bisect_helper.go split context common from helper common 2023-04-30 13:19:53 +10:00
cherry_pick_helper.go standardise helper args 2023-04-30 13:19:53 +10:00
commits_helper.go Retain commit message when cycling history 2023-04-30 13:19:54 +10:00
confirmation_helper.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
credentials_helper.go split context common from helper common 2023-04-30 13:19:53 +10:00
diff_helper.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
files_helper.go standardise helper args 2023-04-30 13:19:53 +10:00
gpg_helper.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
helpers.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
host_helper.go standardise helper args 2023-04-30 13:19:53 +10:00
merge_and_rebase_helper.go Show menu instead of prompt when there are conflicts in a rebase or merge 2023-06-01 10:51:48 +02:00
merge_conflicts_helper.go Fix race condition 2023-05-16 21:01:38 +10:00
mode_helper.go Use sentence case everywhere 2023-05-25 23:52:19 +10: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 split context common from helper common 2023-04-30 13:19:53 +10:00
refresh_helper.go Add commit store 2023-10-02 16:25:15 +11:00
refs_helper.go Use sentence case everywhere 2023-05-25 23:52:19 +10:00
repos_helper.go Use sentence case everywhere 2023-05-25 23:52:19 +10:00
snake_helper.go split context common from helper common 2023-04-30 13:19:53 +10:00
staging_helper.go Refresh staging panel when committing 2023-04-30 13:19:54 +10:00
suggestions_helper.go Use sentence case everywhere 2023-05-25 23:52:19 +10:00
tags_helper.go Use sentence case everywhere 2023-05-25 23:52:19 +10:00
update_helper.go appease linter 2023-04-30 13:19:53 +10:00
upstream_helper.go standardise helper args 2023-04-30 13:19:53 +10:00
upstream_helper_test.go Add option to (un)set upstream for a local branch 2022-04-11 14:04:06 +02:00
view_helper.go standardise helper args 2023-04-30 13:19:53 +10:00
window_arrangement_helper.go Use sentence case everywhere 2023-05-25 23:52:19 +10:00
window_helper.go move side window actions to controllers package 2023-04-30 13:19:53 +10:00
working_tree_helper.go Use sentence case everywhere 2023-05-25 23:52:19 +10:00