1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-10 04:07:18 +02:00
lazygit/pkg
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
..
app Support range select in rebase actions 2024-01-23 17:23:56 +11:00
cheatsheet Make it possible to handle toasts in integration tests 2024-01-14 17:42:03 +01:00
commands Refactor repo_paths.go to use git rev-parse 2024-01-24 08:40:01 +01:00
common Add AppState to common.Common 2023-09-04 17:48:39 +02:00
config Add config setting to suppress showing file icons 2024-01-22 08:40:03 +01:00
constants
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 Make range selections created with the mouse non-sticky 2024-01-24 08:22:55 +01:00
i18n Support range select in rebase actions 2024-01-23 17:23:56 +11:00
integration Refactor repo_paths.go to use git rev-parse 2024-01-24 08:40:01 +01:00
jsonschema Add UserConfig jsonschema generation script 2023-12-02 10:46:24 +01:00
logs Remove secureexec package 2023-07-30 19:59:51 +10:00
snake integrate snake game into lazygit 2022-12-30 12:18:59 +11:00
tasks Refactor repo_paths.go to use git rev-parse 2024-01-24 08:40:01 +01:00
theme Standardise display of range selection across views 2024-01-19 10:47:21 +11:00
updates Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
utils Support range select in rebase actions 2024-01-23 17:23:56 +11:00