mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +02:00
Hide worktrees in the worktree panel if they point at a non-existing filesystem location.
Remove unneeded check when filtering out branches from non-current worktrees from the branch panel. Add link icon for linked worktrees
This commit is contained in:
parent
60872c91e6
commit
9a79154d05
3 changed files with 26 additions and 13 deletions
|
@ -144,8 +144,10 @@ func (self *BranchLoader) obtainBranches() []*models.Branch {
|
|||
return nil, false
|
||||
}
|
||||
|
||||
if len(split[6]) > 0 && split[6] != currentDir {
|
||||
branchDir := split[6]
|
||||
if len(branchDir) > 0 && branchDir != currentDir {
|
||||
// Ignore line because it is a branch checked out in a different worktree
|
||||
// Branches which are not checked out will not have a path, so we should not ignore them.
|
||||
return nil, false
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue