jesseduffield.lazygit/pkg/commands
Jesse Duffield 16ed3c2377 Retry on index.lock error
I don't know why we're getting index.lock errors but they're impossile to stop
anyway given that other processes can be calling git commands. So we're retrying
a few times before re-raising. To do this we need to clone the command and the current
implementation for that is best-effort.

I do worry about the maintainability of that but we'll see how it goes.

Also, I thought you'd need to clone the task (if it exists) but now I think not;
as long as you don't call done twice on it you should be fine, and you shouldn't
be done'ing a task as part of running a command: that should happen higher up.
2023-07-10 19:13:18 +10:00
..
git_commands Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
git_config Use mutex on cached git config 2023-07-09 21:30:19 +10:00
hosting_service Update gitlab commit URL to match new routing 2023-05-22 07:39:47 +03:30
models Support filtering files 2023-07-03 12:54:13 +10:00
oscommands Retry on index.lock error 2023-07-10 19:13:18 +10:00
patch Refactor interface for ApplyPatch 2023-05-20 20:54:39 +10:00
testdata Support opening lazygit in a submodule 2019-05-12 17:59:49 +10:00
types/enums more refactoring 2022-01-04 09:07:15 +11:00
git.go Use comment char config on interactive rebase 2023-07-02 02:07:32 -03:00
git_cmd_obj_builder.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
git_cmd_obj_runner.go Retry on index.lock error 2023-07-10 19:13:18 +10:00
git_test.go feat: add GitVersion struct 2022-12-30 20:01:14 +09:00