mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 12:55:47 +02:00
Update worktree model
This commit is contained in:
parent
03f726038e
commit
7682ec029b
4 changed files with 18 additions and 20 deletions
|
@ -44,8 +44,8 @@ func (self *WorktreeLoader) GetWorktrees() ([]*models.Worktree, error) {
|
|||
if strings.HasPrefix(splitLine, "worktree ") {
|
||||
path := strings.SplitN(splitLine, " ", 2)[1]
|
||||
currentWorktree = &models.Worktree{
|
||||
Id: len(worktrees),
|
||||
Path: path,
|
||||
IsMain: len(worktrees) == 0,
|
||||
Path: path,
|
||||
}
|
||||
} else if strings.HasPrefix(splitLine, "branch ") {
|
||||
branch := strings.SplitN(splitLine, " ", 2)[1]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue