1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-27 00:51:18 +02:00
Files
lazygit/pkg/commands/models/worktree.go
2023-07-30 18:35:21 +10:00

22 lines
307 B
Go

package models
// Worktree : A git worktree
type Worktree struct {
Name string
Main bool
Current bool
Path string
}
func (w *Worktree) RefName() string {
return w.Name
}
func (w *Worktree) ID() string {
return w.RefName()
}
func (w *Worktree) Description() string {
return w.RefName()
}