1
0
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:
Jesse Duffield
2023-07-16 11:36:50 +10:00
parent 03f726038e
commit 7682ec029b
4 changed files with 18 additions and 20 deletions

View File

@ -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
}