jesseduffield.lazygit/pkg/gui/types
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
..
common.go Add commit store 2023-10-02 16:25:15 +11:00
common_commands.go start moving commit panel handlers into controller 2022-03-17 19:13:40 +11:00
context.go move more actions into controller 2023-04-30 13:19:53 +10:00
keybindings.go lots more refactoring 2023-04-30 13:19:53 +10:00
modes.go controller for viewing sub commits 2022-03-17 19:13:40 +11:00
ref.go fix: fix ambiguous refname 2022-05-13 21:05:51 +09:00
refresh.go Begin refactoring gui 2023-04-30 13:19:52 +10:00
rendering.go Visualize the "ignore whitespace" state in the subtitle of the diff view 2023-05-20 12:58:32 +10:00
suggestion.go support labels for suggestions which are distinct from values 2020-11-28 20:48:17 +11:00
views.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00