jesseduffield.lazygit/pkg/integration/components
Jesse Duffield 4a07e03701 Local-ise remote branches when checking out by name
The idea here is that in the git CLI you will often want to checkout a
remote branch like origin/blah by doing `git checkout blah`. That will
automatically create a local branch named blah that tracks origin/blah.

Previously in the suggestions view when checking out a branch by name,
we would only show local branches and remote branches like origin/blah
but wouldn't show blah as an option (assuming no local branch existed
with that name). This meant users would checkout origin/blah and git
would check out that branch as a detached head which is rarely what you
actually want.

Now we give them both options. The alternative approach we could have
taken is to still show the branch as origin/blah but then ask if the
user wants to check out the branch as detached or as a local branch
tracking the remote branch. That approach is certainly more versatile,
but it's also something you can do already by going to the remote branch
directly via the remotes view. Admittedly, my approach involves less
work.
2024-03-09 13:53:14 +11: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 Show mode-specific keybinding suggestions 2024-01-28 08:33:13 +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 Extend submodule tests to use a submodule where name and path are different 2024-03-07 20:16:28 +01: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 Local-ise remote branches when checking out by name 2024-03-09 13:53:14 +11: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 Fix error message for selected lines 2024-01-25 11:34:59 +11:00
views.go Show mode-specific keybinding suggestions 2024-01-28 08:33:13 +11:00