mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-06 22:33:07 +02:00
Move the Ref interface from gui/types to models
This is a type that can be useful for model/backend stuff, so move it there. We are going to use it in the API of the commit loader.
This commit is contained in:
@ -1,14 +0,0 @@
|
||||
package types
|
||||
|
||||
type Ref interface {
|
||||
FullRefName() string
|
||||
RefName() string
|
||||
ShortRefName() string
|
||||
ParentRefName() string
|
||||
Description() string
|
||||
}
|
||||
|
||||
type RefRange struct {
|
||||
From Ref
|
||||
To Ref
|
||||
}
|
8
pkg/gui/types/ref_range.go
Normal file
8
pkg/gui/types/ref_range.go
Normal file
@ -0,0 +1,8 @@
|
||||
package types
|
||||
|
||||
import "github.com/jesseduffield/lazygit/pkg/commands/models"
|
||||
|
||||
type RefRange struct {
|
||||
From models.Ref
|
||||
To models.Ref
|
||||
}
|
Reference in New Issue
Block a user