jesseduffield.lazygit/pkg
Mohammed Faizan Mohiuddin bf586ff0c6 Fix panic when moving a custom patch after its commit leaves the view
When a custom patch is built from a commit and you then check out a branch
that doesn't contain that commit, getPatchCommitIndex() returns -1, which was
passed straight into commits[commitIndex], panicking with 'index out of range
[-1]' (#5802). This affected all five custom-patch menu actions.

Make getPatchCommitIndex() return an error when the patch's commit is no longer
present, and have each action surface it as a friendly message instead of
crashing. Add an integration test reproducing the scenario.
2026-07-27 15:43:35 +05:30
..
app Allow overriding the platform used for default keybindings 2026-07-03 19:08:22 +02:00
cheatsheet Render every key for a binding in the cheatsheet 2026-05-25 15:18:18 +02:00
commands Clamp ConPTY sizes to the 1x1 minimum that Windows accepts 2026-07-23 17:31:26 +02:00
common Move NewDummyCommon to pkg/common 2025-05-06 09:43:26 +02:00
config Support a {{diffContext}} template variable in external diff command 2026-07-23 17:13:02 +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 Modernize all codes 2025-11-15 10:46:23 +01:00
gocui Schedule a redraw when resuming from suspension 2026-07-20 14:23:09 +02:00
gui Fix panic when moving a custom patch after its commit leaves the view 2026-07-27 15:43:35 +05:30
i18n Fix panic when moving a custom patch after its commit leaves the view 2026-07-27 15:43:35 +05:30
integration Fix panic when moving a custom patch after its commit leaves the view 2026-07-27 15:43:35 +05:30
jsonschema Fold legacy quit-alt1 into the multi-key quit binding 2026-05-25 15:32:47 +02:00
logs Fix Windows linter errors 2026-06-16 16:21:13 +02:00
snake Enable intrange linter, and fix warnings 2025-06-30 18:30:11 +02:00
tasks Handle a command task's end-of-input on the UI thread 2026-07-17 12:35:54 +02:00
theme Copy gocui files into lazygit repo under pkg/gocui 2026-04-30 14:29:08 +02:00
updates Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
utils Expand a leading ~ in worktree paths to the home directory 2026-07-03 18:53:05 +02:00