jesseduffield.lazygit/pkg/integration/components
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
..
alert_driver.go Support matchers on integers in integration tests 2023-06-03 15:32:23 +10:00
assertion_helper.go Remove retry logic in integration tests 2023-07-09 20:57:18 +10:00
commit_description_panel_driver.go Add test demonstrating a bug with preserving the commit message 2024-01-09 14:31:53 +01:00
commit_message_panel_driver.go Remove unused function 2024-01-09 14:31:53 +01:00
common.go Add ability to start an interactive rebase onto an appropriate base 2024-01-13 12:57:49 +11:00
confirmation_driver.go Add demo for amending old commit 2023-08-02 22:32:51 +10:00
env.go Refactor repo_paths.go to use git rev-parse 2024-01-24 08:40:01 +01:00
file_system.go Support matchers on integers in integration tests 2023-06-03 15:32:23 +10:00
git.go Allow deleting remote tags/branches from local tag/branch views (#2738) 2023-08-10 17:39:26 +10:00
int_matcher.go Add integration tests for searching/filtering 2023-07-03 12:54:14 +10:00
matcher.go Support matchers on integers in integration tests 2023-06-03 15:32:23 +10:00
menu_driver.go Use ErrorToast instead of error panel when invoking a disabled command 2024-01-14 17:45:35 +01:00
paths.go Rename test/results to test/_results 2023-09-15 18:04:20 +02:00
popup.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
prompt_driver.go Support matchers on integers in integration tests 2023-06-03 15:32:23 +10:00
random.go Add commit graph demo 2023-08-12 16:16:03 +10:00
runner.go Refactor repo_paths.go to use git rev-parse 2024-01-24 08:40:01 +01:00
search_driver.go Support matchers on integers in integration tests 2023-06-03 15:32:23 +10:00
shell.go Refactor repo_paths.go to use git rev-parse 2024-01-24 08:40:01 +01:00
test.go Refactor repo_paths.go to use git rev-parse 2024-01-24 08:40:01 +01:00
test_driver.go Make it possible to handle toasts in integration tests 2024-01-14 17:42:03 +01:00
test_test.go Make it mandatory to acknowledge toasts in tests 2024-01-14 17:42:03 +01:00
text_matcher.go Better assertion logic for line selection 2024-01-23 13:43:39 +11:00
view_driver.go Better assertion logic for line selection 2024-01-23 13:43:39 +11:00
views.go Standardise display of range selection across views 2024-01-19 10:47:21 +11:00