mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-27 00:51:18 +02:00
22 lines
307 B
Go
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()
|
|
}
|