lazygit/pkg/utils
Stefan Haller e27bc15bbd Store Commit.Hash by pointer (kept in a pool of hashes)
This in itself is not an improvement, because hashes are unique (they are shared
between real commits and rebase todos, but there are so few of those that it
doesn't matter). However, it becomes an improvement once we also store parent
hashes in the same pool; but the real motivation for this change is to also
reuse the hash pointers in Pipe objects later in the branch. This will be a big
win because in a merge-heavy git repo there are many more Pipe instances than
commits.
2025-04-29 14:57:15 +02:00
..
yaml_utils Migrate to only doing marshalling twice, and compare via deep copy 2025-02-27 17:05:31 -05:00
color.go Fix Decolorise to also strip hyperlinks 2024-08-24 10:36:01 +02:00
color_test.go Fix Decolorise to also strip hyperlinks 2024-08-24 10:36:01 +02:00
date.go Use 'M' for months in branches panel 2023-07-30 18:35:22 +10:00
date_test.go Fix unit tests 2023-07-30 18:35:23 +10:00
dummies.go Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
errors.go move OS commands into their own package 2020-09-29 20:48:49 +10:00
formatting.go Return nil columnPositions when not rendering anything 2024-08-24 10:51:25 +02:00
formatting_test.go Modernize benchmarks 2025-04-29 14:57:15 +02:00
history_buffer.go chore: use errors.New to replace fmt.Errorf with no parameters. 2024-04-24 16:21:34 +08:00
history_buffer_test.go Add search history 2023-09-20 08:35:41 +03:00
io.go Fix ForEachLineInFile to not lose the last line if it doesn't end with a LF 2024-10-09 15:37:08 +02:00
io_test.go Fix ForEachLineInFile to not lose the last line if it doesn't end with a LF 2024-10-09 15:37:08 +02:00
lines.go Add a tabWidth parameter to WrapViewLinesToWidth to match gocui 2025-02-20 09:13:56 +01:00
lines_test.go Add a tabWidth parameter to WrapViewLinesToWidth to match gocui 2025-02-20 09:13:56 +01:00
once_writer.go add deadlock mutex package 2022-08-07 11:16:14 +10:00
once_writer_test.go add deadlock mutex package 2022-08-07 11:16:14 +10:00
rebase_todo.go Fix moving a commit across a branch boundary in a stack 2024-12-23 12:18:48 +01:00
rebase_todo_test.go Fix moving a commit across a branch boundary in a stack 2024-12-23 12:18:48 +01:00
regexp.go add FindNamedMatches function in utils 2021-12-26 16:48:23 +11:00
regexp_test.go add FindNamedMatches function in utils 2021-12-26 16:48:23 +11:00
search.go Rename FuzzySearch to FilterStrings 2024-03-17 11:55:30 +01:00
search_test.go Rename FuzzySearch to FilterStrings 2024-03-17 11:55:30 +01:00
slice.go Re-determine existing main branches if mainBranches config changed 2024-08-18 10:24:52 +02:00
slice_test.go Remove redundant variable dedeclarations 2024-05-19 16:38:21 +10:00
string_pool.go Store Commit.Hash by pointer (kept in a pool of hashes) 2025-04-29 14:57:15 +02:00
string_stack.go start refactoring gui 2022-03-17 19:13:40 +11:00
template.go fix: fix ReplacePlaceholderString 2023-01-18 20:56:22 +09:00
template_test.go fix: fix ReplacePlaceholderString 2023-01-18 20:56:22 +09:00
thread_safe_map.go use thread safe map 2022-10-02 20:57:44 -07:00
thread_safe_map_test.go use thread safe map 2022-10-02 20:57:44 -07:00
utils.go Remove utils.Clamp, use lo.Clamp instead 2025-04-21 18:03:18 +02:00
utils_test.go Replace min/max helpers with built-in min/max 2024-04-07 23:24:10 +08:00