1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00
Commit Graph

13 Commits

Author SHA1 Message Date
fdff2dec79 Remove redundant variable dedeclarations
In go 1.22, loop variables are redeclared with each iteration of the
loop, rather than simple updated on each iteration. This means that we
no longer need to manually redeclare variables when they're closed over
by a function.
2024-05-19 16:38:21 +10:00
9cf1ca10a2 rename sha to hash 5 2024-04-12 08:33:47 +02:00
e6ef1642fa rename sha to hash 2024-04-12 08:33:47 +02:00
84333eebc3 renaming variable to CommitHash 2024-04-12 08:33:47 +02:00
7f6eea2a55 standardize 'Commit Sha' to 'Commit Hash' 2024-04-12 08:31:40 +02:00
f933a2f7ec Replace min/max helpers with built-in min/max
We upgraded our minimum Go version to 1.21 in commit
57ac9c2189. We can now replace our
`utils.Min` and `utils.Max` functions with the built-in `min` and `max`.

Reference: https://go.dev/ref/spec#Min_and_max
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2024-04-07 23:24:10 +08:00
e33fe37a99 Standardise on using lo for slice functions
We've been sometimes using lo and sometimes using my slices package, and we need to pick one
for consistency. Lo is more extensive and better maintained so we're going with that.

My slices package was a superset of go's own slices package so in some places I've just used
the official one (the methods were just wrappers anyway).

I've also moved the remaining methods into the utils package.
2023-07-30 18:51:23 +10:00
5df27c61ed Apply correct styling to root commit in graph
The root commit is special in that it has no parents. So we need to add a pipe that's headed for a commit
that doesn't actually exist i.e. the mythical empty tree commit. We're using the actual hash of that
pseudo-commit, but it's not being read anywhere.
2023-06-01 22:20:30 +10:00
94a53484a1 would you believe that I'm adding even more generics 2022-03-24 20:14:41 +11:00
1b75ed3740 many more generics 2022-03-24 20:14:41 +11:00
eda8f4a5d4 lots more generics 2022-03-24 20:14:41 +11:00
802cfb1a04 render commit graph 2021-11-05 07:58:21 +11:00
7a464ae5b7 add graph algorithm 2021-11-01 10:03:49 +11:00