1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-12-01 22:52:01 +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:
Stefan Haller
2025-07-31 11:20:05 +02:00
parent cc0b5a2f7f
commit 4b9921d0a4
15 changed files with 35 additions and 30 deletions

View File

@@ -53,7 +53,7 @@ func (self *StashContext) CanRebase() bool {
return false
}
func (self *StashContext) GetSelectedRef() types.Ref {
func (self *StashContext) GetSelectedRef() models.Ref {
stash := self.GetSelected()
if stash == nil {
return nil