lazygit/pkg/commands
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
..
git_commands Skip post-checkout hook when discarding changes 2025-02-25 11:39:27 +01:00
git_config Use print instead of printf when there are no arguments 2024-08-27 10:33:06 +02:00
hosting_service Allow on prem Azure DevOps Server pull request 2025-01-02 15:10:02 +11:00
models Add user config gui.showNumstatInFilesView 2024-12-08 12:09:47 +01:00
oscommands Use interactive shell for running shell commands only if shell is bash or zsh 2025-01-09 09:29:31 +01:00
patch Adjust line number for working copy when editing a line 2025-01-07 17:46:51 +01:00
testdata
types/enums Show mode-specific keybinding suggestions 2024-01-28 08:33:13 +11:00
git.go Add ahead/behind information for @{push} 2024-05-19 09:44:38 +02:00
git_cmd_obj_builder.go Use an interactive shell for running custom commands 2024-08-17 10:32:18 +02:00
git_cmd_obj_runner.go Retry on index.lock error 2023-07-10 19:13:18 +10:00