jesseduffield.lazygit/pkg
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
..
app Support range select in rebase actions 2024-01-23 17:23:56 +11:00
cheatsheet Render keybinding cheatsheet as markdown table 2024-01-28 08:12:01 +11:00
commands Show all submodules recursively 2024-03-07 20:16:28 +01:00
common Add AppState to common.Common 2023-09-04 17:48:39 +02:00
config Provide two helix presets, one for "helix" and one for "hx" 2024-03-02 10:15:03 +01:00
constants Improve keybinding descriptions 2024-01-28 08:12:01 +11:00
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 Local-ise remote branches when checking out by name 2024-03-09 13:53:14 +11:00
i18n Add author filtering to commit view 2024-02-21 09:58:09 +01:00
integration Local-ise remote branches when checking out by name 2024-03-09 13:53:14 +11: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 Rename MinMax to SortRange 2024-01-26 11:18:06 +01:00