1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Initial addition of support for worktrees

This commit is contained in:
Joel Baranick
2022-09-01 11:25:41 -07:00
committed by Jesse Duffield
parent 52447e5d46
commit f8ba899b87
20 changed files with 439 additions and 0 deletions

View File

@ -0,0 +1,21 @@
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()
}