mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
Update worktree model
This commit is contained in:
@ -6,7 +6,7 @@ import (
|
||||
|
||||
// Worktree : A git worktree
|
||||
type Worktree struct {
|
||||
Id int
|
||||
IsMain bool
|
||||
Path string
|
||||
Branch string
|
||||
}
|
||||
@ -28,5 +28,5 @@ func (w *Worktree) Name() string {
|
||||
}
|
||||
|
||||
func (w *Worktree) Main() bool {
|
||||
return w.Id == 0
|
||||
return w.IsMain
|
||||
}
|
||||
|
Reference in New Issue
Block a user