lazygit/pkg/commands/oscommands
John Whitley 3d9f1e02e5 Refactor repo_paths.go to use git rev-parse
This changes GetRepoPaths() to pull information from `git rev-parse`
instead of effectively reimplementing git's logic for pathfinding. This
change fixes issues with bare repos, esp. versioned homedir use cases,
by aligning lazygit's path handling to what git itself does.

This change also enables lazygit to run from arbitrary subdirectories of
a repository, including correct handling of symlinks, including "deep"
symlinks into a repo, worktree, a repo's submodules, etc.

Integration tests are now resilient against unintended side effects from
the host's environment variables. Of necessity, $PATH and $TERM are the
only env vars allowed through now.
2024-01-24 08:40:01 +01:00
..
cmd_obj.go Remove secureexec package 2023-07-30 19:59:51 +10:00
cmd_obj_builder.go Refactor repo_paths.go to use git rev-parse 2024-01-24 08:40:01 +01:00
cmd_obj_runner.go Log duration of commands 2023-07-29 09:39:22 +10:00
cmd_obj_runner_default.go more refactoring 2022-01-09 14:09:53 +11:00
cmd_obj_runner_test.go Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
cmd_obj_runner_win.go add deadlock mutex package 2022-08-07 11:16:14 +10:00
cmd_obj_test.go Remove secureexec package 2023-07-30 19:59:51 +10:00
copy.go Appease linter 2023-08-02 08:32:57 +10:00
dummies.go use tempdir in tests to prevent polluting worktree 2022-11-13 14:10:21 +11:00
fake_cmd_obj_runner.go Remove secureexec package 2023-07-30 19:59:51 +10:00
gui_io.go Use first class task objects instead of global counter 2023-07-09 21:30:19 +10:00
os.go Moves log related translations into its own Tr.Log. namespace 2023-07-31 19:42:41 -04:00
os_default_platform.go update tests 2022-01-04 09:07:15 +11:00
os_default_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
os_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
os_windows.go update tests 2022-01-04 09:07:15 +11:00
os_windows_test.go Remove secureexec package 2023-07-30 19:59:51 +10:00