mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
Pressing `d` on a worktree only ever removed the worktree, leaving its branch behind even though deleting it too is often what you want. Turn the confirmation into a menu: "Remove worktree", "Remove worktree and delete branch", and "Remove worktree and delete local and remote branch". The branch-deleting items come after the plain removal (they do more harm if picked by accident); both are greyed out for a detached-HEAD worktree, and the local-and-remote one is also greyed when the branch has no upstream. The plain menu pick is the confirmation, so the standalone "remove worktree?" prompt is gone (and its now-dead translation string with it); the dirty-worktree force prompt and the unmerged-branch warning still appear when relevant. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| add_for_existing_branch.go | ||
| add_from_branch.go | ||
| add_from_branch_detached.go | ||
| add_from_commit.go | ||
| add_from_remote_branch.go | ||
| add_from_stash.go | ||
| add_from_tag.go | ||
| associate_branch_bisect.go | ||
| associate_branch_rebase.go | ||
| bare_repo.go | ||
| bare_repo_worktree_config.go | ||
| crud.go | ||
| custom_command.go | ||
| default_path_tilde.go | ||
| detach_worktree_from_branch.go | ||
| dotfile_bare_repo.go | ||
| double_nested_linked_submodule.go | ||
| exclude_file_in_worktree.go | ||
| fast_forward_worktree_branch.go | ||
| fast_forward_worktree_branch_should_not_pollute_current_worktree.go | ||
| force_remove_worktree.go | ||
| force_remove_worktree_with_submodules.go | ||
| location_candidates.go | ||
| new_worktree_picker.go | ||
| new_worktree_picker_remote.go | ||
| remove_worktree_and_both_branches.go | ||
| remove_worktree_and_branch.go | ||
| remove_worktree_and_delete_local_and_remote_branch.go | ||
| remove_worktree_from_branch.go | ||
| reset_window_tabs.go | ||
| symlink_into_repo_subdir.go | ||
| worktree_in_repo.go | ||