lazygit/pkg
Stefan Haller 964278255b Skip post-checkout hook when discarding changes
Some people have post-checkout hooks that take a lot of time, which makes
discarding changes slow. You can argue that a post-checkout hook should only run
when you switch branches, so it doesnt't have to run when checking out single
files or directories. You can also argue that lazygit might have implemented
discarding changes by taking the current patch and applying it in reverse, which
wouldn't have run a post-checkout hook either.

So disable them for all cases where we use git checkout with a path; this
includes checking out a file from the commit files view.
2025-02-25 11:39:27 +01:00
..
app Add screen-mode command line argument 2025-01-02 16:01:48 +11:00
cheatsheet Initialize translation set after reading user config 2024-08-18 10:24:52 +02:00
commands Skip post-checkout hook when discarding changes 2025-02-25 11:39:27 +01:00
common Make common.UserConfig an atomic.Pointer for safe concurrent access 2024-08-18 10:24:52 +02:00
config Filter out [dev] comments when generating config doc 2025-02-23 20:55:28 +01: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 Change side panel width calculation to work for larger numbers 2025-02-24 07:36:47 +11:00
i18n Improve the error message when users have gpg signing turned on 2025-02-25 11:34:57 +01:00
integration Disable global keybinds while popups are active 2025-02-23 08:44:48 +01:00
jsonschema Filter out [dev] comments when generating config doc 2025-02-23 20:55:28 +01:00
logs Remove secureexec package 2023-07-30 19:59:51 +10:00
snake
tasks Suppress error logs when killing process on Windows 2025-02-15 14:51:35 +11:00
theme Highlight inactive selection in bold 2024-06-23 14:43:13 +02:00
updates Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
utils Use indentation of 2 when rewriting auto-migrated config file 2025-02-23 11:32:12 +01:00