jesseduffield.lazygit/pkg
Stefan Haller 6bb8c180b2 Handle scanner error in RunAndProcessLines
Scanners can return errors (e.g. ErrTooLong), and if we don't handle it, the
cmd.Wait() call below will block forever because nobody drains the command's
output.

This happens for CommitLoader.GetCommits when there's a commit whose subject
line is longer than approx. 65500 characters; in that case, lazygit would lock
up completely. With this fix it remains usable, but the commit list is truncated
before the bad commit, which is not good enough. We'll improve that in the
remaining commits of this branch.
2024-05-15 13:27:01 +02:00
..
app Drop update-ref commands at the top of the rebase-todo file 2024-04-22 20:59:15 +02:00
cheatsheet Render keybinding cheatsheet as markdown table 2024-01-28 08:12:01 +11:00
commands Handle scanner error in RunAndProcessLines 2024-05-15 13:27:01 +02:00
common Add AppState to common.Common 2023-09-04 17:48:39 +02:00
config Add commitPrefix for defining a prefix for any project 2024-05-01 19:03:12 +02:00
constants Make the links in the status panel point to the current version rather than master 2024-03-22 08:13:59 +01:00
env Support bare worktrees where worktree does not have its own .git file 2023-08-07 22:40:53 +10:00
fakes cleanup integration test code 2023-02-26 12:54:13 +11:00
gui Fix clicking in status side panel 2024-05-15 13:21:17 +02:00
i18n improve korean translation 2024-04-12 08:33:47 +02:00
integration Add tests for clicking in status side panel 2024-05-15 13:21:17 +02:00
jsonschema Add UserConfig jsonschema generation script 2023-12-02 10:46:24 +01:00
logs Remove secureexec package 2023-07-30 19:59:51 +10:00
snake integrate snake game into lazygit 2022-12-30 12:18:59 +11:00
tasks Make OnWorker callback return an error 2024-04-18 10:10:30 +02:00
theme pkg: fix some comment 2024-04-07 16:09:26 +08:00
updates Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
utils chore: use errors.New to replace fmt.Errorf with no parameters. 2024-04-24 16:21:34 +08:00